mirror of
https://github.com/moparisthebest/MoparClassic
synced 2025-01-08 20:18:09 -05:00
Removed unused local variables in GameEngine.
This commit is contained in:
parent
e3d8ccff4b
commit
ccbcc53bf5
@ -401,17 +401,13 @@ public final class GameEngine extends Thread {
|
|||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
int curMemory = (int) (Runtime.getRuntime().totalMemory() - Runtime
|
int curMemory = (int) (Runtime.getRuntime().totalMemory() - Runtime
|
||||||
.getRuntime().freeMemory()) / 1000;
|
.getRuntime().freeMemory()) / 1000;
|
||||||
int tileObjs = 0;
|
|
||||||
int cleaned = 0;
|
|
||||||
for (int i = 0; i < Instance.getWorld().tiles.length; i++) {
|
for (int i = 0; i < Instance.getWorld().tiles.length; i++) {
|
||||||
for (int in = 0; in < Instance.getWorld().tiles[i].length; in++) {
|
for (int in = 0; in < Instance.getWorld().tiles[i].length; in++) {
|
||||||
ActiveTile tile = Instance.getWorld().tiles[i][in];
|
ActiveTile tile = Instance.getWorld().tiles[i][in];
|
||||||
if (tile != null) {
|
if (tile != null) {
|
||||||
tileObjs++;
|
|
||||||
if (!tile.hasGameObject() && !tile.hasItems()
|
if (!tile.hasGameObject() && !tile.hasItems()
|
||||||
&& !tile.hasNpcs() && !tile.hasPlayers()) {
|
&& !tile.hasNpcs() && !tile.hasPlayers()) {
|
||||||
Instance.getWorld().tiles[i][in] = null;
|
Instance.getWorld().tiles[i][in] = null;
|
||||||
cleaned++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user