mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user