improved syncing of players between C++ and Lua

This commit is contained in:
devZoGok
2023-12-09 12:29:15 +02:00
parent bfa16ad8a2
commit 50ad223951
5 changed files with 34 additions and 10 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ namespace battleship{
inline bool isCpuPlayer(){return cpuPlayer;}
private:
bool cpuPlayer = false;
int refineds = 0, wealth = 0, research = 0, faction, difficulty, team;
int refineds = 0, wealth = 0, research = 0, faction, difficulty, team, luaPlayerId;
std::vector<Unit*> units;
std::vector<Projectile*> projectiles;
std::vector<ResourceDeposit*> resourceDeposits;