tCall to AI player loop added from main() function - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8ea0913a8631d7cdbadcad6d76fc758e16f2c76a
(DIR) parent e40abf49838d86a57c90f8bb5bd384b6e2a982b8
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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();
(DIR) 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"));