Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/robots
Date: Monday May 15, 2000 @ 19:57
Author: ahn
Update of /home/netrek/cvsroot/Vanilla/robots
In directory swashbuckler.fortress.real-time.com:/var/tmp/cvs-serv1373
Modified Files:
inlcmds.c inlcomm.c
Log Message:
Changes by Ahn. See ChangeLog for details.
****************************************
Index: Vanilla/robots/inlcmds.c
diff -u Vanilla/robots/inlcmds.c:1.5 Vanilla/robots/inlcmds.c:1.6
--- Vanilla/robots/inlcmds.c:1.5 Mon May 15 16:39:25 2000
+++ Vanilla/robots/inlcmds.c Mon May 15 19:57:37 2000
@@ -162,7 +162,7 @@
"Restart, cancel game in progress.",
do_restart }, /* RESTART */
{ "SCORE",
- C_PR_INGAME | C_PR_PREGAME,
+ C_PR_INGAME,
"Shows the INL continuous score.",
do_cscore }, /* SCORE */
#if defined(AUTO_INL)
Index: Vanilla/robots/inlcomm.c
diff -u Vanilla/robots/inlcomm.c:1.14 Vanilla/robots/inlcomm.c:1.15
--- Vanilla/robots/inlcomm.c:1.14 Mon May 15 16:39:26 2000
+++ Vanilla/robots/inlcomm.c Mon May 15 19:57:37 2000
@@ -1034,6 +1034,9 @@
float divisor = (float) (inl_stat.game_ticks * 4);
+ if (inl_stat.game_ticks < 1)
+ return;
+
if (divisor < 1.0f)
divisor = 1.0f;
@@ -1044,7 +1047,7 @@
(float) inl_teams[0].abs_score / divisor,
(float) inl_teams[1].abs_score / divisor);
- divisor = (float) (inl_stat.game_ticks * 4 / (5 * PERMIN));
+ divisor = (float) ((inl_stat.game_ticks / (5 * PERMIN)) * 4);
if (divisor <= 1.0f)
divisor = 1.0f;