summaryrefslogtreecommitdiff
path: root/src/screen_world.c
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-06-23 14:52:45 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-06-23 14:52:45 +0000
commit74296b5f2f8b572d3037a9de23c2e8dd1c372a7b (patch)
tree7fbd7b7f17269296d14b6ccbe0ae0da8b09d48fb /src/screen_world.c
parent7af32f143eb8615163e1bc78a417434e18da0e71 (diff)
- popora AI v moduloch
- zjednodusenie sietoveho protokolu - oprava chyb git-svn-id: http://opensvn.csie.org/tuxanci_ng@68 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/screen_world.c')
-rw-r--r--src/screen_world.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/screen_world.c b/src/screen_world.c
index 077153f..a5fdc1c 100644
--- a/src/screen_world.c
+++ b/src/screen_world.c
@@ -103,6 +103,7 @@ void countRoundInc()
}
count++;
+ printf("count %d/%d\n", count, max_count);
if( count >= max_count )
{
@@ -116,6 +117,8 @@ void prepareArena()
{
tux_t *tux;
+ //printf("getSettingAI = %s\n", getSettingAI());
+
switch( getNetTypeGame() )
{
case NET_GAME_TYPE_NONE :
@@ -134,6 +137,12 @@ void prepareArena()
tuxWithControlLeftKeyboard = tux;
getSettingNameLeft(tux->name);
addObjectToSpace(arena->spaceTux, tux);
+
+ if( strcmp(getSettingAI(), "none") != 0 )
+ {
+ loadModule( getSettingAI() );
+ tux->control = TUX_CONTROL_AI;
+ }
break;
case NET_GAME_TYPE_SERVER :