From: Holger Z. <hz...@us...> - 2005-07-01 14:21:07
|
Update of /cvsroot/jake2/jake2/src/jake2/qcommon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30655/src/jake2/qcommon Modified Files: Netchan.java Qcommon.java Log Message: remove timer hack and use new Timer classes Index: Qcommon.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/qcommon/Qcommon.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Qcommon.java 28 Jun 2005 08:41:19 -0000 1.18 --- Qcommon.java 1 Jul 2005 14:20:56 -0000 1.19 *************** *** 31,34 **** --- 31,35 ---- import jake2.game.Cmd; import jake2.server.SV_MAIN; + import jake2.sys.*; import jake2.sys.NET; import jake2.sys.Sys; *************** *** 213,217 **** if (Globals.host_speeds.value != 0.0f) ! time_before= Sys.Milliseconds(); Com.debugContext = "SV:"; --- 214,218 ---- if (Globals.host_speeds.value != 0.0f) ! time_before= Timer.Milliseconds(); Com.debugContext = "SV:"; *************** *** 219,223 **** if (Globals.host_speeds.value != 0.0f) ! time_between= Sys.Milliseconds(); Com.debugContext = "CL:"; --- 220,224 ---- if (Globals.host_speeds.value != 0.0f) ! time_between= Timer.Milliseconds(); Com.debugContext = "CL:"; *************** *** 225,229 **** if (Globals.host_speeds.value != 0.0f) { ! time_after= Sys.Milliseconds(); int all= time_after - time_before; --- 226,230 ---- if (Globals.host_speeds.value != 0.0f) { ! time_after= Timer.Milliseconds(); int all= time_after - time_before; Index: Netchan.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/qcommon/Netchan.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Netchan.java 17 Jan 2005 21:55:45 -0000 1.5 --- Netchan.java 1 Jul 2005 14:20:56 -0000 1.6 *************** *** 31,35 **** import jake2.server.SV_MAIN; import jake2.sys.NET; ! import jake2.sys.Sys; /** --- 31,35 ---- import jake2.server.SV_MAIN; import jake2.sys.NET; ! import jake2.sys.Timer; /** *************** *** 112,116 **** // pick a port value that should be nice and random ! port = Sys.Milliseconds() & 0xffff; showpackets = Cvar.Get("showpackets", "0", 0); --- 112,116 ---- // pick a port value that should be nice and random ! port = Timer.Milliseconds() & 0xffff; showpackets = Cvar.Get("showpackets", "0", 0); |