mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +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 "ASD.h" // added by Flugente
|
||||||
#include "MiniEvents.h"
|
#include "MiniEvents.h"
|
||||||
#include "Rebel Command.h"
|
#include "Rebel Command.h"
|
||||||
|
#include "World Items.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Vehicles.h"
|
#include "Vehicles.h"
|
||||||
@@ -725,6 +726,9 @@ fFirstTimeInMapScreen = TRUE;
|
|||||||
// this is for the "mercs climbing down from a rope" animation, NOT Skyrider!!
|
// this is for the "mercs climbing down from a rope" animation, NOT Skyrider!!
|
||||||
ResetHeliSeats( );
|
ResetHeliSeats( );
|
||||||
|
|
||||||
|
TrashWorldItems();
|
||||||
|
ClearAllWorldItems();
|
||||||
|
|
||||||
#ifdef LUA_GAME_INIT_NEW_GAME
|
#ifdef LUA_GAME_INIT_NEW_GAME
|
||||||
|
|
||||||
LetLuaGameInit(0);
|
LetLuaGameInit(0);
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ INT32 FindWorldItem( UINT16 usItem );
|
|||||||
void LoadWorldItemsFromMap( INT8 **hBuffer, float dMajorMapVersion, int ubMinorMapVersion );
|
void LoadWorldItemsFromMap( INT8 **hBuffer, float dMajorMapVersion, int ubMinorMapVersion );
|
||||||
void SaveWorldItemsToMap(HWFILE fp, float dMajorMapVersion, UINT8 ubMinorMapVersion);//dnl ch33 150909
|
void SaveWorldItemsToMap(HWFILE fp, float dMajorMapVersion, UINT8 ubMinorMapVersion);//dnl ch33 150909
|
||||||
|
|
||||||
|
void ClearAllWorldItems();
|
||||||
void TrashWorldItems();
|
void TrashWorldItems();
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|||||||
Reference in New Issue
Block a user