mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 12:08:12 +03:00
Renamed weapon to dm_primary
This commit is contained in:
parent
b0f26acc18
commit
13febc125e
2 changed files with 5 additions and 5 deletions
|
@ -122,7 +122,7 @@ typedef struct {
|
|||
char netname[ MAX_NAME_LENGTH ];
|
||||
char playermodel[ MAX_QPATH ];
|
||||
char playergermanmodel[ MAX_QPATH ];
|
||||
char weapon[ MAX_QPATH ];
|
||||
char dm_primary[ MAX_QPATH ];
|
||||
|
||||
float enterTime;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ Called on game shutdown
|
|||
void G_WriteClientSessionData( gclient_t *client )
|
||||
{
|
||||
gi.Cvar_Set( va( "session%i", ( int )( client - game.clients ) ),
|
||||
va( "%s %i %i", client->pers.weapon[ 0 ] ? client->pers.weapon : "-",
|
||||
va( "%s %i %i", client->pers.dm_primary[ 0 ] ? client->pers.dm_primary : "-",
|
||||
client->pers.team,
|
||||
client->pers.kills ) );
|
||||
}
|
||||
|
@ -68,10 +68,10 @@ void G_ReadSessionData( gclient_t *client )
|
|||
|
||||
session = gi.Cvar_Get(va("session%zi", client - game.clients), "", 0);
|
||||
|
||||
sscanf( session->string, "%s %i %i", client->pers.weapon, &client->pers.team, &client->pers.kills );
|
||||
if( client->pers.weapon[ 0 ] == '-' )
|
||||
sscanf( session->string, "%s %i %i", client->pers.dm_primary, &client->pers.team, &client->pers.kills );
|
||||
if( client->pers.dm_primary[ 0 ] == '-' )
|
||||
{
|
||||
client->pers.weapon[ 0 ] = 0;
|
||||
client->pers.dm_primary[ 0 ] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue