mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-10 06:42:22 +00:00
Fix stupid missmerge, ReadField() may only be called once for a field.
This commit is contained in:
parent
39e5a3189d
commit
1d6e3f6eab
2 changed files with 2 additions and 4 deletions
|
@ -719,15 +719,13 @@ ReadClient(FILE *f, gclient_t *client, short save_ver)
|
|||
|
||||
for (field = clientfields; field->name; field++)
|
||||
{
|
||||
ReadField(f, field, (byte *)client);
|
||||
|
||||
if (field->save_ver <= save_ver)
|
||||
{
|
||||
ReadField(f, field, (byte *)client);
|
||||
}
|
||||
}
|
||||
|
||||
if(save_ver < 3)
|
||||
if (save_ver < 3)
|
||||
{
|
||||
InitClientResp(client);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ extern void WriteLevelLocals ( FILE * f ) ;
|
|||
extern void WriteEdict ( FILE * f , edict_t * ent ) ;
|
||||
extern void ReadGame ( const char * filename ) ;
|
||||
extern void WriteGame ( const char * filename , qboolean autosave ) ;
|
||||
extern void ReadClient ( FILE * f , gclient_t * client, short save_ver ) ;
|
||||
extern void ReadClient ( FILE * f , gclient_t * client , short save_ver ) ;
|
||||
extern void WriteClient ( FILE * f , gclient_t * client ) ;
|
||||
extern void ReadField ( FILE * f , field_t * field , byte * base ) ;
|
||||
extern void WriteField2 ( FILE * f , field_t * field , byte * base ) ;
|
||||
|
|
Loading…
Reference in a new issue