mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Cleanup small parts of ItemDefinitionDecoder and StaticObjectDecoder.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user