mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Move Com_SwapSaveStruct to a better place
This commit is contained in:
parent
53d5dd1e40
commit
e3936f52a2
4 changed files with 10 additions and 11 deletions
|
@ -2403,6 +2403,15 @@ qboolean COM_IsMapValid(const char* name) {
|
|||
*/
|
||||
}
|
||||
|
||||
void Com_SwapSaveStruct(savegamestruct_t* save) {
|
||||
save->version = LittleShort(save->version);
|
||||
save->time = LittleLong(save->time);
|
||||
save->mapTime = LittleLong(save->mapTime);
|
||||
|
||||
save->tm_loopcount = LittleLong(save->tm_loopcount);
|
||||
save->tm_offset = LittleLong(save->tm_offset);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
|
|
@ -2190,12 +2190,3 @@ int Com_IndexForGrowListElement(const growList_t * list, const void *element)
|
|||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
void Com_SwapSaveStruct(savegamestruct_t* save) {
|
||||
save->version = LittleShort(save->version);
|
||||
save->time = LittleLong(save->time);
|
||||
save->mapTime = LittleLong(save->mapTime);
|
||||
|
||||
save->tm_loopcount = LittleLong(save->tm_loopcount);
|
||||
save->tm_offset = LittleLong(save->tm_offset);
|
||||
}
|
||||
|
|
|
@ -1107,8 +1107,6 @@ int Com_AddToGrowList(growList_t * list, void *data);
|
|||
void *Com_GrowListElement(const growList_t * list, int index);
|
||||
int Com_IndexForGrowListElement(const growList_t * list, const void *element);
|
||||
|
||||
void Com_SwapSaveStruct(struct savegamestruct_s* save);
|
||||
|
||||
|
||||
//=============================================
|
||||
|
||||
|
|
|
@ -1096,6 +1096,7 @@ const char *Com_GetArchiveFolder();
|
|||
void Com_WipeSavegame( const char *savename );
|
||||
qboolean Com_ShiftedStrStr(const char* shifted, const char* name, int offset);
|
||||
qboolean COM_IsMapValid(const char* name);
|
||||
void Com_SwapSaveStruct(savegamestruct_t* save);
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue