diff options
author | Holger Zickner <[email protected]> | 2004-07-12 20:47:02 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-07-12 20:47:02 +0000 |
commit | 4dca2574fe978cb98a9320f6db8176ee77973e91 (patch) | |
tree | 6cd1d23b2136f4f3817de7a0ba71c6f0d9ff52d3 /src/jake2/qcommon/CM.java | |
parent | 25252922d19cd51c8bf7a3544d6b2a82c8a26fff (diff) |
cleanups
Diffstat (limited to 'src/jake2/qcommon/CM.java')
-rw-r--r-- | src/jake2/qcommon/CM.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jake2/qcommon/CM.java b/src/jake2/qcommon/CM.java index 1c3a756..a75cf05 100644 --- a/src/jake2/qcommon/CM.java +++ b/src/jake2/qcommon/CM.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 02.01.2004 by RST. -// $Id: CM.java,v 1.3 2004-07-09 06:50:50 hzi Exp $ +// $Id: CM.java,v 1.4 2004-07-12 20:47:00 hzi Exp $ package jake2.qcommon; @@ -1703,7 +1703,7 @@ public class CM extends Game { public static byte[] CM_ClusterPVS(int cluster) { if (cluster == -1) - Lib.memset(pvsrow, (byte) 0, (numclusters + 7) >> 3); + Arrays.fill(pvsrow, 0, (numclusters + 7) >> 3, (byte)0); else CM_DecompressVis(map_visibility, map_vis.bitofs[cluster][DVIS_PVS], pvsrow); return pvsrow; @@ -1711,7 +1711,7 @@ public class CM extends Game { public static byte[] CM_ClusterPHS(int cluster) { if (cluster == -1) - Lib.memset(phsrow, (byte) 0, (numclusters + 7) >> 3); + Arrays.fill(phsrow, 0, (numclusters + 7) >> 3, (byte)0); else CM_DecompressVis(map_visibility, map_vis.bitofs[cluster][Defines.DVIS_PHS], phsrow); return phsrow; @@ -1822,10 +1822,10 @@ public class CM extends Game { bytes = (numareas + 7) >> 3; if (map_noareas.value != 0) { // for debugging, send everything - Lib.memset(buffer, 255, bytes); + Arrays.fill(buffer, 0, bytes, (byte)255); } else { - Lib.memset(buffer, 0, bytes); + Arrays.fill(buffer, 0, bytes, (byte)0); floodnum = map_areas[area].floodnum; for (i = 0; i < numareas; i++) { if (map_areas[i].floodnum == floodnum || area == 0) |