mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-22 23:48:48 -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();
|
||||
int curMemory = (int) (Runtime.getRuntime().totalMemory() - Runtime
|
||||
.getRuntime().freeMemory()) / 1000;
|
||||
int tileObjs = 0;
|
||||
int cleaned = 0;
|
||||
for (int i = 0; i < Instance.getWorld().tiles.length; i++) {
|
||||
for (int in = 0; in < Instance.getWorld().tiles[i].length; in++) {
|
||||
ActiveTile tile = Instance.getWorld().tiles[i][in];
|
||||
if (tile != null) {
|
||||
tileObjs++;
|
||||
if (!tile.hasGameObject() && !tile.hasItems()
|
||||
&& !tile.hasNpcs() && !tile.hasPlayers()) {
|
||||
Instance.getWorld().tiles[i][in] = null;
|
||||
cleaned++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user