updated lua invocations using sol3

This commit is contained in:
devZoGok
2023-08-19 10:23:00 +03:00
parent 5cf511d0fd
commit 06e1ec54aa
20 changed files with 238 additions and 201 deletions
+2 -4
View File
@@ -4,7 +4,7 @@
#include <vector.h>
#include <stateManager.h>
#include <luaManager.h>
#include <solUtil.h>
#include "consoleCommand.h"
#include "inGameAppState.h"
@@ -62,9 +62,7 @@ namespace battleship{
int unitId = atoi(fullCommand[2].c_str());
LuaManager *lm = LuaManager::getSingleton();
if(!(0 <= unitId && unitId <= lm->getInt("numUnits")))
if(!(0 <= unitId && unitId <= (int)SOL_LUA_STATE["numUnits"]))
return;
}