Vanilla Development Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/robots
Date: Friday June 18, 1999 @ 15:52
Author: unbelver
Update of /home/netrek/cvsroot/Vanilla/robots
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv7254
Modified Files:
inl.c
Log Message:
Re: this bug report:
INL robot problems reported by d4sand,
- if game that is not ROM/FED ends, and players return to start
another game, they can't be captain because "you must choose
a race first."
Now, at game end, all planets made visible to all races, queues
switched back to Home-FED/Away-ROM, and everybody is obliterated and
made to re-join FED/ROM. (not made to re-login, though) The ablility
to captain and to start games is restored.
****************************************
Index: Vanilla/robots/inl.c
diff -u Vanilla/robots/inl.c:1.18 Vanilla/robots/inl.c:1.19
--- Vanilla/robots/inl.c:1.18 Sun Jun 6 17:38:27 1999
+++ Vanilla/robots/inl.c Fri Jun 18 15:52:04 1999
@@ -1,7 +1,7 @@
-/* $Id: inl.c,v 1.18 1999/06/06 22:38:27 jeffno Exp $ */
+/* $Id: inl.c,v 1.19 1999/06/18 20:52:04 unbelver Exp $ */
#ifndef lint
-static char vcid[] = "$Id: inl.c,v 1.18 1999/06/06 22:38:27 jeffno Exp $";
+static char vcid[] = "$Id: inl.c,v 1.19 1999/06/18 20:52:04 unbelver Exp $";
#endif /* lint */
/*
@@ -517,7 +517,6 @@
int c, official = 0;
status->tourn = 0;
- obliterate(1, TOURNEND);
gettimeofday(&tv, (struct timezone *) 0);
fprintf(inl_log, "TIME: Game ending at %d seconds\n", tv.tv_sec);
@@ -588,7 +587,21 @@
}
reset_inl(1);
+ /* Set the queues so players go to default side */
+ queues[QU_HOME].tournmask = inl_teams[HOME].side;
+ queues[QU_AWAY].tournmask = inl_teams[AWAY].side;
+ queues[QU_HOME_OBS].tournmask = inl_teams[HOME].side;
+ queues[QU_AWAY_OBS].tournmask = inl_teams[AWAY].side;
+
+ /* make every planet visible */
+ for (c = 0; c < MAXPLANETS; c++)
+ {
+ planets[c].pl_info = ALLTEAM;
+ }
+ /* and make everybody re-join */
+ obliterate(1, TOURNEND);
+
} /* if (game_over) */
}