Update of /cvsroot/jake2/jake2/src/jake2/game
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4443/src/jake2/game
Modified Files:
Tag: render-refactoring
Cmd.java
Log Message:
code cleanup. use Defines instead of Globals
(Defines contains all constants)
Index: Cmd.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/game/Cmd.java,v
retrieving revision 1.13
retrieving revision 1.13.6.1
diff -C2 -d -r1.13 -r1.13.6.1
*** Cmd.java 13 Mar 2005 20:52:05 -0000 1.13
--- Cmd.java 13 Nov 2005 12:57:56 -0000 1.13.6.1
***************
*** 96,100 ****
String s = Cmd.Argv(1);
! if (s.length() > Globals.MAX_ALIAS_NAME) {
Com.Printf("Alias name is too long\n");
return;
--- 96,100 ----
String s = Cmd.Argv(1);
! if (s.length() > Defines.MAX_ALIAS_NAME) {
Com.Printf("Alias name is too long\n");
return;
***************
*** 1108,1112 ****
cl.flood_locktill = GameBase.level.time
+ GameBase.flood_waitdelay.value;
! SV_GAME.PF_cprintf(ent, Globals.PRINT_CHAT,
"Flood protection: You can't talk for "
+ (int) GameBase.flood_waitdelay.value
--- 1108,1112 ----
cl.flood_locktill = GameBase.level.time
+ GameBase.flood_waitdelay.value;
! SV_GAME.PF_cprintf(ent, Defines.PRINT_CHAT,
"Flood protection: You can't talk for "
+ (int) GameBase.flood_waitdelay.value
|