tCall to AI player loop added from main() function - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 8ea0913a8631d7cdbadcad6d76fc758e16f2c76a
parent e40abf49838d86a57c90f8bb5bd384b6e2a982b8
Author: Ben Webb 
Date:   Tue, 10 Apr 2001 13:21:36 +0000

Call to AI player loop added from main() function


Diffstat:
  M src/dopewars.c                      |       2 ++
  M src/winmain.c                       |       2 ++

2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/dopewars.c b/src/dopewars.c
t@@ -1690,6 +1690,8 @@ int main(int argc,char *argv[]) {
       StartNetworking();
       if (Server) {
          ServerLoop();
+      } else if (AIPlayer) {
+         AIPlayerLoop();
       } else switch(WantedClient) {
          case CLIENT_AUTO:
             if (!GtkLoop(&argc,&argv,TRUE)) CursesLoop();
diff --git a/src/winmain.c b/src/winmain.c
t@@ -87,6 +87,8 @@ int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,
          g_set_print_handler(Win32PrintFunc);
          newterm(NULL,NULL,NULL);
          ServerLoop();
+      } else if (AIPlayer) {
+         AIPlayerLoop();
       } else if (WantedClient==CLIENT_CURSES) {
          AllocConsole();
          SetConsoleTitle(_("dopewars"));