Date:	Sunday February 24, 2002 @ 12:43
Author:	karthik

Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory swashbuckler.real-time.com:/var/tmp/cvs-serv17223

Modified Files:
	ntscmds.c 
Log Message:
Added an 'sbtime' command to see how long until your team's base is available.



****************************************

Index: Vanilla/ntserv/ntscmds.c
diff -u Vanilla/ntserv/ntscmds.c:1.19 Vanilla/ntserv/ntscmds.c:1.20
--- Vanilla/ntserv/ntscmds.c:1.19	Sun Feb 11 17:58:35 2001
+++ Vanilla/ntserv/ntscmds.c	Sun Feb 24 12:43:52 2002
@@ -1,4 +1,4 @@
-/* $Id: ntscmds.c,v 1.19 2001/02/11 23:58:35 unbelver Exp $
+/* $Id: ntscmds.c,v 1.20 2002/02/24 18:43:52 karthik Exp $
  */
 
 /*
@@ -59,6 +59,7 @@
 const char myname[] = {"GOD"};
 
 void do_time_msg(char *comm, struct message *mess);
+void do_sbtime_msg(char *comm, struct message *mess);
 void do_queue_msg(char *comm, struct message *mess);
 
 #ifdef GENO_COUNT
@@ -145,6 +146,10 @@
 		C_PR_INPICKUP,
 		"Show time left on surrender timer.",
 		do_time_msg },			/* TIME */
+	{ "SBTIME",
+		C_PLAYER,
+		"Show time until the Starbase is available.",
+		do_sbtime_msg },		/* SBTIME */
 #ifdef GENO_COUNT
     { "GENOS",
 		C_PLAYER | C_PR_INPICKUP,
@@ -587,6 +592,15 @@
   } else {
     pmessage(who, MINDIV, addr, "The %s have %d minutes left before they surrender.", teamNames[t],teams[t].s_surrender);
   }
+}
+
+/* ARGSUSED */
+void do_sbtime_msg(char *comm, struct message *mess)
+{
+  if (teams[players[mess->m_from].p_team].s_turns > 0)
+	pmessage(mess->m_from, MINDIV, addr_mess(mess->m_from, MINDIV), "Starbase construction will be complete in %d minutes.", teams[players[mess->m_from].p_team].s_turns);
+  else
+	pmessage(mess->m_from, MINDIV, addr_mess(mess->m_from, MINDIV), "Your Starbase is available.");
 }
 
 /*