Cleanup small parts of ItemDefinitionDecoder and StaticObjectDecoder.

This commit is contained in:
Major-
2014-08-01 15:10:44 +01:00
parent 5788f7d8a4
commit 20f9e20e8f
2 changed files with 6 additions and 5 deletions
@@ -148,7 +148,7 @@ public final class ItemDefinitionDecoder {
} else if (opcode == 113) {
buffer.get();
} else if (opcode == 114) {
buffer.getShort();
buffer.get();
} else if (opcode == 115) {
definition.setTeam(buffer.get() & 0xFF);
}
@@ -105,11 +105,12 @@ public final class StaticObjectDecoder {
int info = buffer.get() & 0xFF;
int type = info >> 2;
int rotation = info & 3;
if (type >= 0 && type <= 3 || type >= 9 && type <= 21) {
Position pos = new Position(x + localX, y + localY, height);
Position pos = new Position(x + localX, y + localY, height);
GameObject object = new GameObject(id, pos, type, rotation);
objects.add(object);
GameObject object = new GameObject(id, pos, type, rotation);
objects.add(object);
}
}
}