Renamed state variable to be more consistent with server

This commit is contained in:
Jeremiah Billmann
2013-07-09 21:28:00 -04:00
parent 10e20936db
commit cd0a076424
2 changed files with 6 additions and 6 deletions
+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);