fix: clear world items when starting a new game

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9389 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
rftr
2022-06-03 04:43:48 +00:00
parent 15bb2a8537
commit 612cc2a405
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -64,6 +64,7 @@
#include "ASD.h" // added by Flugente
#include "MiniEvents.h"
#include "Rebel Command.h"
#include "World Items.h"
#endif
#include "Vehicles.h"
@@ -725,6 +726,9 @@ fFirstTimeInMapScreen = TRUE;
// this is for the "mercs climbing down from a rope" animation, NOT Skyrider!!
ResetHeliSeats( );
TrashWorldItems();
ClearAllWorldItems();
#ifdef LUA_GAME_INIT_NEW_GAME
LetLuaGameInit(0);
+1
View File
@@ -113,6 +113,7 @@ INT32 FindWorldItem( UINT16 usItem );
void LoadWorldItemsFromMap( INT8 **hBuffer, float dMajorMapVersion, int ubMinorMapVersion );
void SaveWorldItemsToMap(HWFILE fp, float dMajorMapVersion, UINT8 ubMinorMapVersion);//dnl ch33 150909
void ClearAllWorldItems();
void TrashWorldItems();
typedef struct