diff options
Diffstat (limited to 'src/jake2/client')
-rw-r--r-- | src/jake2/client/CL_ents.java | 15 | ||||
-rw-r--r-- | src/jake2/client/CL_parse.java | 14 |
2 files changed, 18 insertions, 11 deletions
diff --git a/src/jake2/client/CL_ents.java b/src/jake2/client/CL_ents.java index ae05398..37d044c 100644 --- a/src/jake2/client/CL_ents.java +++ b/src/jake2/client/CL_ents.java @@ -2,7 +2,7 @@ * CL_ents.java * Copyright (C) 2004 * - * $Id: CL_ents.java,v 1.4 2004-07-09 06:50:50 hzi Exp $ + * $Id: CL_ents.java,v 1.5 2004-07-12 20:47:01 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -234,22 +234,23 @@ public class CL_ents extends CL_inv { int bits=0; entity_state_t oldstate=null; - int oldindex, oldnum; + int oldnum; newframe.parse_entities = cl.parse_entities; newframe.num_entities = 0; // delta from the entities present in oldframe - oldindex = 0; + int oldindex = 0; if (oldframe == null) oldnum = 99999; else { - if (oldindex >= oldframe.num_entities) - oldnum = 99999; - else { + // oldindex == 0. hoz +// if (oldindex >= oldframe.num_entities) +// oldnum = 99999; +// else { oldstate = cl_parse_entities[(oldframe.parse_entities + oldindex) & (MAX_PARSE_ENTITIES - 1)]; oldnum = oldstate.number; - } +// } } while (true) { diff --git a/src/jake2/client/CL_parse.java b/src/jake2/client/CL_parse.java index a36e677..f50857d 100644 --- a/src/jake2/client/CL_parse.java +++ b/src/jake2/client/CL_parse.java @@ -2,7 +2,7 @@ * CL_parse.java * Copyright (C) 2004 * - * $Id: CL_parse.java,v 1.5 2004-07-09 06:50:50 hzi Exp $ + * $Id: CL_parse.java,v 1.6 2004-07-12 20:47:01 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -218,7 +218,9 @@ public class CL_parse extends CL_view { Com.Printf("Server does not have this file.\n"); if (cls.download != null) { // if here, we tried to resume a file but the server said no - fclose(cls.download); + try { + cls.download.close(); + } catch (IOException e) {} cls.download = null; } CL.RequestNextDownload(); @@ -262,7 +264,9 @@ public class CL_parse extends CL_view { // Com.Printf ("100%%\n"); - fclose(cls.download); + try { + cls.download.close(); + } catch (IOException e) {} // rename the temp file to it's final name oldn = DownloadFileName(cls.downloadtempname); @@ -693,7 +697,9 @@ public class CL_parse extends CL_view { Com.Printf("Server disconnected, reconnecting\n"); if (cls.download != null) { //ZOID, close download - fclose(cls.download); + try { + cls.download.close(); + } catch (IOException e) {} cls.download = null; } cls.state = ca_connecting; |