diff --git a/src/processor.js b/src/processor.js index 300ad172..3241b397 100644 --- a/src/processor.js +++ b/src/processor.js @@ -136,7 +136,7 @@ function processRoom(roomId, intents, objects, terrain, gameTime, roomInfo, flag continue; } - if (!object || object._skip) continue; + if (!object || object._skip || object.user && object.user != userId) continue; if (object.type == 'creep') require('./processor/intents/creeps/intents')(object, objectIntents, objects, terrain, bulk, userBulk, roomController, stats, gameTime, roomInfo); diff --git a/src/utils.js b/src/utils.js index e51404e2..f01284d7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -580,8 +580,6 @@ exports.storeIntents = function(userId, userIntents, userRuntimeData) { }; } - if(!(i in userRuntimeData.userObjects)) continue; - if(objectIntentsResult.move) { objectIntents.move = { direction: parseInt(objectIntentsResult.move.direction)