diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:00:29 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:00:29 +0000 |
| commit | c68df329f2483d8fc9b75488c695787cd18c20a4 (patch) | |
| tree | 18e11cd70360c77606ecdeafe5dbd8f9ff0c12d7 /src/client/saveLoad.c | |
| parent | 753fde16397b5943091aa1e9112cea1e5ded0ca5 (diff) | |
- vsetky widegety pouzivaju widget_t
( priparava na kontajner s widgetmi )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@201 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/client/saveLoad.c')
| -rw-r--r-- | src/client/saveLoad.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/saveLoad.c b/src/client/saveLoad.c index a31bc64..475613d 100644 --- a/src/client/saveLoad.c +++ b/src/client/saveLoad.c @@ -12,6 +12,7 @@ #include "tux.h" #include "shot.h" #include "item.h" +#include "modules.h" #include "saveLoad.h" @@ -104,8 +105,9 @@ static arena_t* loadArenaFromLine(char *line) sscanf(line, "%s %s %d %d", cmd, name, &countRound, &max_countRound); setWorldArena( getArenaIdFormNetName(name) ); - setMaxCountRound(max_countRound); + arena = getCurrentArena(); + arena->max_countRound = max_countRound; arena->countRound = countRound; return arena; @@ -141,6 +143,12 @@ static void loadTuxFromLine(char *line, arena_t *arena) setControlTux(tux, TUX_CONTROL_KEYBOARD_LEFT); } + if( tux->control == TUX_CONTROL_AI ) + { + loadModule("libmodAI"); + setControlTux(tux, TUX_CONTROL_KEYBOARD_LEFT); + } + moveObjectInSpace(arena->spaceTux, tux, x, y); tux->status = status; tux->position = position; |