Author: cazfi
Date: Sat Oct 31 00:57:50 2015
New Revision: 30328

URL: http://svn.gna.org/viewcvs/freeciv?rev=30328&view=rev
Log:
Introduced macros is_ai(), is_human(), set_as_ai(), and set_as_human() all 
taking
player pointer as parameter. Use them in most places instead of direct access to
plr->ai_controlled. 

See patch #6508

Modified:
    trunk/ai/default/advdiplomacy.c
    trunk/ai/default/aidata.c
    trunk/ai/default/aidiplomat.c
    trunk/ai/default/aiferry.c
    trunk/ai/default/aisettler.c
    trunk/ai/default/aitools.c
    trunk/ai/default/aiunit.c
    trunk/ai/default/daieffects.c
    trunk/ai/handicaps.c
    trunk/client/climisc.c
    trunk/client/gui-gtk-2.0/diplodlg.c
    trunk/client/gui-gtk-2.0/pages.c
    trunk/client/gui-gtk-3.0/diplodlg.c
    trunk/client/gui-gtk-3.0/pages.c
    trunk/client/gui-qt/diplodlg.cpp
    trunk/client/gui-qt/pages.cpp
    trunk/client/gui-sdl2/diplodlg.c
    trunk/client/gui-sdl2/mapview.c
    trunk/client/gui-sdl2/plrdlg.c
    trunk/client/mapctrl_common.c
    trunk/client/messagewin_common.c
    trunk/client/packhand.c
    trunk/client/plrdlg_common.c
    trunk/client/text.c
    trunk/common/diptreaty.c
    trunk/common/mapimg.c
    trunk/common/player.c
    trunk/common/player.h
    trunk/common/requirements.c
    trunk/common/research.c
    trunk/server/advisors/advbuilding.c
    trunk/server/advisors/advdata.c
    trunk/server/advisors/advgoto.c
    trunk/server/advisors/autoexplorer.c
    trunk/server/advisors/autosettlers.c
    trunk/server/animals.c
    trunk/server/barbarian.c
    trunk/server/cityturn.c
    trunk/server/connecthand.c
    trunk/server/diplhand.c
    trunk/server/meta.c
    trunk/server/plrhand.c
    trunk/server/report.c
    trunk/server/savegame.c
    trunk/server/savegame2.c
    trunk/server/savegame3.c
    trunk/server/sernet.c
    trunk/server/settings.c
    trunk/server/srv_main.c
    trunk/server/stdinhand.c
    trunk/server/techtools.c
    trunk/server/unithand.c
    trunk/server/unittools.c

[This mail would be too long, it was shortened to contain the URLs only.]

Modified: trunk/ai/default/advdiplomacy.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/advdiplomacy.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/default/aidata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aidata.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/default/aidiplomat.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aidiplomat.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/default/aiferry.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aiferry.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/default/aisettler.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aisettler.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/default/aitools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aitools.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/default/aiunit.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aiunit.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/default/daieffects.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/daieffects.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/ai/handicaps.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/handicaps.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/climisc.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/climisc.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-gtk-2.0/diplodlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-2.0/diplodlg.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-gtk-2.0/pages.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-2.0/pages.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-gtk-3.0/diplodlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/diplodlg.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-gtk-3.0/pages.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-gtk-3.0/pages.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-qt/diplodlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/diplodlg.cpp?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-qt/pages.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/pages.cpp?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-sdl2/diplodlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/diplodlg.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-sdl2/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/mapview.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/gui-sdl2/plrdlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/plrdlg.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/mapctrl_common.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/mapctrl_common.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/messagewin_common.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/messagewin_common.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/plrdlg_common.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/plrdlg_common.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/client/text.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/text.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/common/diptreaty.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/diptreaty.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/common/mapimg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/mapimg.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/common/player.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/player.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/common/player.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/player.h?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/common/requirements.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/requirements.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/common/research.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/research.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/advisors/advbuilding.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/advbuilding.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/advisors/advdata.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/advdata.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/advisors/advgoto.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/advgoto.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/advisors/autoexplorer.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/autoexplorer.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/advisors/autosettlers.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/advisors/autosettlers.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/animals.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/animals.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/barbarian.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/barbarian.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/cityturn.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/connecthand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/connecthand.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/diplhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/diplhand.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/meta.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/meta.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/plrhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/plrhand.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/report.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/report.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/savegame.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/savegame.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/savegame2.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/savegame2.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/savegame3.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/savegame3.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/sernet.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/sernet.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/settings.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/settings.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/srv_main.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/stdinhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/stdinhand.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/techtools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/techtools.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=30328&r1=30327&r2=30328&view=diff

Modified: trunk/server/unittools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=30328&r1=30327&r2=30328&view=diff


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to