Ace of Spades
GEM Fanboy
Hello AI modders,
while reading through CvPlayerAI.cpp for the first time, I noticed some really strange code.
It's rather far down in CvPlayerAI::AI_getStrategyHash() and CvPlayerAI::AI_getCultureVictoryStage().
In both methods, there is a variable named "iNonsense". If I understood the code correctly, this variable is determined by the coordinates of a civs capital on the map, and influences the AIs strategic behaviour - now did I get that correctly, that a civ starting in the lower right corner of a map might prefer different strategies than a civ starting in the center or the upper right corner?
This seems pretty strange to me... perhaps someone with more understanding of the AI code could verify it.
Best regards,
Ace
while reading through CvPlayerAI.cpp for the first time, I noticed some really strange code.
It's rather far down in CvPlayerAI::AI_getStrategyHash() and CvPlayerAI::AI_getCultureVictoryStage().
In both methods, there is a variable named "iNonsense". If I understood the code correctly, this variable is determined by the coordinates of a civs capital on the map, and influences the AIs strategic behaviour - now did I get that correctly, that a civ starting in the lower right corner of a map might prefer different strategies than a civ starting in the center or the upper right corner?
This seems pretty strange to me... perhaps someone with more understanding of the AI code could verify it.
Best regards,
Ace