diff options
author | Rene Stoeckel <[email protected]> | 2005-12-16 21:14:36 +0000 |
---|---|---|
committer | Rene Stoeckel <[email protected]> | 2005-12-16 21:14:36 +0000 |
commit | 6d5a59899cc4544827638dabf3909d00275461ce (patch) | |
tree | f7ad85d7373297a3bb67ce4b3124c50d3e99240b /src/jake2/client/CL.java | |
parent | 17a0b535e41095b1262a0151e387a813e789b755 (diff) |
fix - printf does not like zero length strings
Diffstat (limited to 'src/jake2/client/CL.java')
-rw-r--r-- | src/jake2/client/CL.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jake2/client/CL.java b/src/jake2/client/CL.java index 3aa7f1c..cd14908 100644 --- a/src/jake2/client/CL.java +++ b/src/jake2/client/CL.java @@ -2,7 +2,7 @@ * CL.java * Copyright (C) 2004 * - * $Id: CL.java,v 1.26 2005-12-06 14:37:43 cawe Exp $ + * $Id: CL.java,v 1.27 2005-12-16 21:14:36 salomo Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -813,7 +813,8 @@ public final class CL { // print command from somewhere if (c.equals("print")) { s = MSG.ReadString(Globals.net_message); - Com.Printf(s); + if (s.length() > 0) + Com.Printf(s); return; } |