Code:
0x0045ce5a [?GetTerrainType@Cell@@QBEHXZ + 0xa] 0x004f90ec [?terrainutil_GetTerrainEffect@@YAPBVEffect@TerrainImprovementRecord@@PBV2@ABVMapPoint@@@Z + 0x19] 0x004f9361 [?terrainutil_GetProductionCost@@YAHHABVMapPoint@@H@Z + 0xbe] 0x004cc1a2 [?ComputeTowerPositions@GaiaController@@QAEXXZ + 0x2af] 0x004cc2a9 [?BuildProcessingTowers@GaiaController@@QAEXXZ + 0x35] 0x0089aeca [?BeginTurn@CtpAi@@SAXH@Z + 0x224] 0x005390f6 [?GEVHookCallback@BeginTurnEvent@@EAE?AW4GAME_EVENT_HOOK_DISPOSITION@@W4GAME_EVENT@@PAVGameEventArgList@@@Z + 0x8d] 0x005c1e82 [?Activate@GameEventHook@@QBE?AW4GAME_EVENT_ERR@@PAVGameEventArgList@@HAAH@Z + 0x8e] 0x005c2ae0 [?ActivateHook@GameEventManager@@QAE?AW4GAME_EVENT_ERR@@W4GAME_EVENT@@PAVGameEventArgList@@HAAH@Z + 0x40] 0x005c07f2 [?Process@GameEvent@@QAE?AW4GAME_EVENT_ERR@@XZ + 0x2d] 0x005c2954 [?ProcessHead@GameEventManager@@QAE?AW4GAME_EVENT_ERR@@XZ + 0x2f] 0x005c28fb [?Process@GameEventManager@@QAE?AW4GAME_EVENT_ERR@@XZ + 0x7b] 0x005c2870 [?ArglistAddEvent@GameEventManager@@QAE?AW4GAME_EVENT_ERR@@W4GAME_EVENT_INSERT@@W4GAME_EVENT@@PAVGameEventArgList@@@Z + 0x13d] 0x005c2725 [?AddEvent@GameEventManager@@QAA?AW4GAME_EVENT_ERR@@W4GAME_EVENT_INSERT@@W4GAME_EVENT@@ZZ + 0xe5] 0x0043e076 [?dh_endTurn@@YAXPAVDQAction@@PAVSequence@@W4DHEXECUTE@@@Z + 0x35] 0x00437ef2 [?HandleNextAction@Director@@QAEXXZ + 0xfb] 0x00437d92 [?Process@Director@@QAEXXZ + 0x25] 0x0040ebbf [?ProcessUI@CivApp@@QAEHIAAI@Z + 0x22c] 0x0040eee0 [?Process@CivApp@@QAEHXZ + 0xa7]
Code:
TERRAIN_TYPES GetTerrainType() const { return TERRAIN_TYPES(m_terrain_type); }
Code:
const TerrainImprovementRecord::Effect *terrainutil_GetTerrainEffect(const TerrainImprovementRecord *rec, const MapPoint &pos) { return terrainutil_GetTerrainEffect(rec, (sint32)g_theWorld->GetCell(pos)->GetTerrainType()); }
So whats the problem? it works when I start new games?
I do see governor call it this way:
Code:
const TERRAIN_TYPES terrain_type = g_theWorld->GetTerrainType(pos);
EDIT: well I did try to match it the governor's way, still get a the "long turn" and then game not responding.
Comment