Refactoring 1

This commit is contained in:
Montagna Marco 2020-04-01 13:09:14 +02:00
parent 05d931a4b6
commit 3f35e4de4f
127 changed files with 159 additions and 332 deletions

View file

@ -3,6 +3,7 @@
#include "..\Game\box.h"
#include "..\Game\lot.h"
#include "..\Game\sound.h"
#include "../Specific/setup.h"
extern GameFlow* g_GameFlow;
@ -314,7 +315,7 @@ void GameScript::AssignItemsAndLara()
for (int i = 0; i < NUM_ITEMS; i++)
m_items[i].NativeItem = NULL;
for (int i = 0; i < NumItems; i++)
for (int i = 0; i < LevelItems; i++)
m_items[i].NativeItem = &Items[i];
(*m_lua)["Lara"] = m_items[Lara.itemNumber];