mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-09-03 12:33:28 +00:00
updated lua invocations using sol3
This commit is contained in:
+2
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user