[ctp2-commit] Revision 634 committed by Martin G?\195?\188hmann

ctp2-commit at darkdust.net ctp2-commit at darkdust.net
Sat Sep 9 23:45:19 CEST 2006


Fixed AI slider handling, added a simplification for modders for making the AI to respect the city limit and did some cleanings:

Fixed the AI slider handling:
modified   ctp2_code/ai/CityManagement/governor.cpp

Removed some duplicated code:
modified   ctp2_code/ai/CityManagement/governor.cpp
modified   ctp2_code/gs/gameobj/citydata.h
modified   ctp2_code/gs/gameobj/CityData.cpp
modified   ctp2_code/ui/interface/CauseAndEffectTab.cpp
modified   ctp2_code/ui/interface/citywindow.cpp

Strategies STRATEGY_TOO_MANY_CITIES and STRATEGY_NO_REVOLUTON are loaded automaticly if present in strategies.txt and no according strategies are defined in personalities.txt. This means less work for modders to make the AI to respect the city limit.
modified   ctp2_code/ai/diplomacy/sstateevent.cpp

Made the alternative ressource calculation compile again:
modified   ctp2_code/ai/CityManagement/governor.h
modified   ctp2_code/gs/gameobj/CityData.cpp

Cleaned code a little bit:
modified   ctp2_code/gs/gameobj/Player.cpp
modified   ctp2_code/gs/gameobj/player.h

Removed some warnings concerning to bool conversion:
modified   ctp2_code/gs/world/wldgen.cpp
modified   ctp2_code/gs/world/World.h
modified   ctp2_code/net/general/net_action.cpp
modified   ctp2_code/net/general/net_info.cpp

Added some comments no functional change:
modified   ctp2_data/default/aidata/personalities.txt

Updated readme:
modified   doc/user/playtest/Apolyton_README.txt

U   trunk/ctp2_code/ai/CityManagement/governor.cpp
U   trunk/ctp2_code/ai/CityManagement/governor.h
U   trunk/ctp2_code/ai/diplomacy/sstateevent.cpp
U   trunk/ctp2_code/gs/gameobj/CityData.cpp
U   trunk/ctp2_code/gs/gameobj/Player.cpp
U   trunk/ctp2_code/gs/gameobj/citydata.h
U   trunk/ctp2_code/gs/gameobj/player.h
U   trunk/ctp2_code/gs/world/World.h
U   trunk/ctp2_code/gs/world/wldgen.cpp
U   trunk/ctp2_code/net/general/net_action.cpp
U   trunk/ctp2_code/net/general/net_info.cpp
U   trunk/ctp2_code/ui/interface/CauseAndEffectTab.cpp
U   trunk/ctp2_code/ui/interface/citywindow.cpp
U   trunk/ctp2_data/default/aidata/personalities.txt
U   trunk/doc/user/playtest/Apolyton_README.txt



More information about the ctp2-commit mailing list