mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Fix indention after b44fd32
.
This commit is contained in:
parent
95bdec447d
commit
f7706b2c06
3 changed files with 7 additions and 4 deletions
|
@ -573,7 +573,7 @@ typedef struct
|
|||
int ofs;
|
||||
fieldtype_t type;
|
||||
int flags;
|
||||
short save_ver; // currently only used by clientfields[]
|
||||
short save_ver;
|
||||
} field_t;
|
||||
|
||||
extern field_t fields[];
|
||||
|
|
|
@ -741,12 +741,12 @@ ReadClient(FILE *f, gclient_t *client, short save_ver)
|
|||
|
||||
for (field = clientfields; field->name; field++)
|
||||
{
|
||||
if(field->save_ver <= save_ver)
|
||||
if (field->save_ver <= save_ver)
|
||||
{
|
||||
ReadField(f, field, (byte *)client);
|
||||
}
|
||||
}
|
||||
if(save_ver < 3)
|
||||
if (save_ver < 3)
|
||||
{
|
||||
InitClientResp(client);
|
||||
}
|
||||
|
@ -849,6 +849,7 @@ ReadGame(const char *filename)
|
|||
if (!strcmp(str_ver, SAVEGAMEVER))
|
||||
{
|
||||
save_ver = 3;
|
||||
|
||||
if (strcmp(str_game, GAMEVERSION))
|
||||
{
|
||||
fclose(f);
|
||||
|
@ -868,6 +869,7 @@ ReadGame(const char *filename)
|
|||
else if (!strcmp(str_ver, "YQ2-2"))
|
||||
{
|
||||
save_ver = 2;
|
||||
|
||||
if (strcmp(str_game, GAMEVERSION))
|
||||
{
|
||||
fclose(f);
|
||||
|
@ -887,6 +889,7 @@ ReadGame(const char *filename)
|
|||
else if (!strcmp(str_ver, "YQ2-1"))
|
||||
{
|
||||
save_ver = 1;
|
||||
|
||||
if (strcmp(str_game, GAMEVERSION))
|
||||
{
|
||||
fclose(f);
|
||||
|
|
|
@ -33,7 +33,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