Renamed state variable to be more consistent with server

This commit is contained in:
Jeremiah Billmann committed 2013-07-09 21:28:00 -04:00
1 parent 10e20936db
commit cd0a076424
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -20,11 +20,11 @@ $(function () {
GarageServerIO.getStates(function (selfState, playerStates, entityStates) {
playerStates.forEach(function (player) {
ctxCanvas.fillRect(player.currentState.x, player.currentState.y, 15, 15);
ctxCanvas.fillRect(player.state.x, player.state.y, 15, 15);
});
entityStates.forEach(function (entity) {
ctxCanvas.fillRect(entity.currentState.x, entity.currentState.y, 15, 15);
ctxCanvas.fillRect(entity.state.x, entity.state.y, 15, 15);
});
ctxCanvas.fillRect(selfState.x, selfState.y, 15, 15);