mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 07:47:57 +03:00
Move InitializeObjets back, only reinit regenerated pickups counter
This commit is contained in:
parent
cb37bda329
commit
4ed26b1c2d
2 changed files with 3 additions and 3 deletions
|
@ -174,6 +174,7 @@ void InitializeGameFlags()
|
|||
|
||||
FlipEffect = NO_VALUE;
|
||||
FlipStatus = false;
|
||||
NumRPickups = 0;
|
||||
Camera.underwater = false;
|
||||
}
|
||||
|
||||
|
@ -252,7 +253,6 @@ void InitializeObjects()
|
|||
// User defined objects
|
||||
CustomObjects();
|
||||
|
||||
NumRPickups = 0;
|
||||
CurrentSequence = 0;
|
||||
SequenceResults[0][1][2] = 0;
|
||||
SequenceResults[0][2][1] = 1;
|
||||
|
|
|
@ -219,8 +219,6 @@ std::string ReadString()
|
|||
|
||||
void LoadItems()
|
||||
{
|
||||
InitializeObjects();
|
||||
|
||||
g_Level.NumItems = ReadCount();
|
||||
TENLog("Moveables: " + std::to_string(g_Level.NumItems), LogLevel::Info);
|
||||
|
||||
|
@ -456,6 +454,8 @@ void LoadObjects()
|
|||
Objects[objNum].animIndex = ReadInt32();
|
||||
}
|
||||
|
||||
InitializeObjects();
|
||||
|
||||
int staticCount = ReadCount();
|
||||
TENLog("Statics: " + std::to_string(staticCount), LogLevel::Info);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue