Vanilla Development Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/robots
Date: Thursday June 17, 1999 @ 2:52
Author: unbelver
Update of /home/netrek/cvsroot/Vanilla/robots
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv6984
Modified Files:
inlcomm.c
Log Message:
Odd, I did a cvs update inlcomm.c before I worked on it. I did
another cvs update after I worked on it, cvs commit didn't
complain about me not being synced up, and I didn't remove that code
snippet. I wonder why and how that happened.
--Carlos V.
****************************************
Index: Vanilla/robots/inlcomm.c
diff -u Vanilla/robots/inlcomm.c:1.10 Vanilla/robots/inlcomm.c:1.11
--- Vanilla/robots/inlcomm.c:1.10 Thu Jun 17 02:46:14 1999
+++ Vanilla/robots/inlcomm.c Thu Jun 17 02:52:51 1999
@@ -320,9 +320,13 @@
inl_teams[HOME].planets, inl_teams[AWAY].planets,
(20 - inl_teams[HOME].planets - inl_teams[AWAY].planets));
#else
+ {
+ int seconds = ( (time - inl_stat.game_ticks) / PERSEC ) % 60;
+ int minutes = ( (time - inl_stat.game_ticks) / PERMIN );
+
pmessage(who, MINDIV, addr_mess(who, MINDIV),
- "Minutes remaining: %i",
- ((time - inl_stat.game_ticks) / PERMIN ));
+ "Time remaining: %d:%02.2d", minutes, seconds);
+ }
#endif
return 1;