mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
- bugfixes for save / load game bugs reported
This commit is contained in:
parent
f80e440713
commit
5b5d753341
@ -3222,6 +3222,9 @@ void Game::checkWinner() {
|
||||
}
|
||||
|
||||
void Game::checkWinnerStandard() {
|
||||
if(world.getFactionCount() <= 0) {
|
||||
return;
|
||||
}
|
||||
if(this->masterserverMode == true || world.getThisFaction()->getPersonalityType() == fpt_Observer) {
|
||||
// lookup int is team #, value is players alive on team
|
||||
std::map<int,int> teamsAlive;
|
||||
|
@ -590,7 +590,7 @@ void Program::setState(ProgramState *programStateNew, bool cleanupOldState) {
|
||||
sprintf(szBuf,"In [%s::%s Line: %d]\nError [%s]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__,e.what());
|
||||
SystemFlags::OutputDebug(SystemFlags::debugError,szBuf);
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,szBuf);
|
||||
//abort();
|
||||
abort();
|
||||
|
||||
messageBoxIsSystemError = true;
|
||||
|
||||
|
@ -343,7 +343,7 @@ void LuaScript::loadGame(const XmlNode *rootNode) {
|
||||
lua_pushnumber( luaState, node->getAttribute("value")->getIntValue() );
|
||||
break;
|
||||
case LUA_TBOOLEAN:
|
||||
lua_pushboolean( luaState, node->getAttribute("value")->getIntValue() );
|
||||
lua_pushboolean( luaState, node->getAttribute("value")->getBoolValue() );
|
||||
break;
|
||||
case LUA_TTABLE:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user