mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +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;
|
int ofs;
|
||||||
fieldtype_t type;
|
fieldtype_t type;
|
||||||
int flags;
|
int flags;
|
||||||
short save_ver; // currently only used by clientfields[]
|
short save_ver;
|
||||||
} field_t;
|
} field_t;
|
||||||
|
|
||||||
extern field_t fields[];
|
extern field_t fields[];
|
||||||
|
|
|
@ -741,12 +741,12 @@ ReadClient(FILE *f, gclient_t *client, short save_ver)
|
||||||
|
|
||||||
for (field = clientfields; field->name; field++)
|
for (field = clientfields; field->name; field++)
|
||||||
{
|
{
|
||||||
if(field->save_ver <= save_ver)
|
if (field->save_ver <= save_ver)
|
||||||
{
|
{
|
||||||
ReadField(f, field, (byte *)client);
|
ReadField(f, field, (byte *)client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(save_ver < 3)
|
if (save_ver < 3)
|
||||||
{
|
{
|
||||||
InitClientResp(client);
|
InitClientResp(client);
|
||||||
}
|
}
|
||||||
|
@ -849,6 +849,7 @@ ReadGame(const char *filename)
|
||||||
if (!strcmp(str_ver, SAVEGAMEVER))
|
if (!strcmp(str_ver, SAVEGAMEVER))
|
||||||
{
|
{
|
||||||
save_ver = 3;
|
save_ver = 3;
|
||||||
|
|
||||||
if (strcmp(str_game, GAMEVERSION))
|
if (strcmp(str_game, GAMEVERSION))
|
||||||
{
|
{
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
@ -868,6 +869,7 @@ ReadGame(const char *filename)
|
||||||
else if (!strcmp(str_ver, "YQ2-2"))
|
else if (!strcmp(str_ver, "YQ2-2"))
|
||||||
{
|
{
|
||||||
save_ver = 2;
|
save_ver = 2;
|
||||||
|
|
||||||
if (strcmp(str_game, GAMEVERSION))
|
if (strcmp(str_game, GAMEVERSION))
|
||||||
{
|
{
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
@ -887,6 +889,7 @@ ReadGame(const char *filename)
|
||||||
else if (!strcmp(str_ver, "YQ2-1"))
|
else if (!strcmp(str_ver, "YQ2-1"))
|
||||||
{
|
{
|
||||||
save_ver = 1;
|
save_ver = 1;
|
||||||
|
|
||||||
if (strcmp(str_game, GAMEVERSION))
|
if (strcmp(str_game, GAMEVERSION))
|
||||||
{
|
{
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
|
@ -33,7 +33,7 @@ extern void WriteLevelLocals ( FILE * f ) ;
|
||||||
extern void WriteEdict ( FILE * f , edict_t * ent ) ;
|
extern void WriteEdict ( FILE * f , edict_t * ent ) ;
|
||||||
extern void ReadGame ( const char * filename ) ;
|
extern void ReadGame ( const char * filename ) ;
|
||||||
extern void WriteGame ( const char * filename , qboolean autosave ) ;
|
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 WriteClient ( FILE * f , gclient_t * client ) ;
|
||||||
extern void ReadField ( FILE * f , field_t * field , byte * base ) ;
|
extern void ReadField ( FILE * f , field_t * field , byte * base ) ;
|
||||||
extern void WriteField2 ( FILE * f , field_t * field , byte * base ) ;
|
extern void WriteField2 ( FILE * f , field_t * field , byte * base ) ;
|
||||||
|
|
Loading…
Reference in a new issue