mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fixed m_fpsTiki being uninitialized when archiving
This commit is contained in:
parent
cca37e3dfe
commit
5418d84c7e
2 changed files with 7 additions and 0 deletions
|
@ -2480,6 +2480,11 @@ void Player::InitModel(void)
|
|||
}
|
||||
}
|
||||
|
||||
InitModelFps();
|
||||
}
|
||||
|
||||
void Player::InitModelFps(void)
|
||||
{
|
||||
char model_name[MAX_STRING_TOKENS];
|
||||
char *model_replace;
|
||||
|
||||
|
|
|
@ -514,6 +514,7 @@ public:
|
|||
void InitWeapons(void);
|
||||
void InitView(void);
|
||||
void InitModel(void);
|
||||
void InitModelFps(void); // Added in openmohaa
|
||||
void InitState(void);
|
||||
void InitHealth(void);
|
||||
void InitInventory(void);
|
||||
|
@ -1157,6 +1158,7 @@ inline void Player::Archive(Archiver& arc)
|
|||
|
||||
if (arc.Loading()) {
|
||||
UpdateWeapons();
|
||||
InitModelFps();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue