Skip to content

Commit

Permalink
fix bad loot bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Townsend committed Aug 28, 2014
1 parent 80c793a commit 62ed9f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/js/app/world.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ define(['jquery', 'app/eventmanager', 'app/analytics', 'app/graphics/graphics',
GameState.count('KILLED', 1);
stuff.splice(i, 1);
i--;
} else if(entity.lootable) {
stuff.splice(i, 1);
i--;
} else if(entity == dude) {
// Dude is dead. Long live the dude.
stuff.splice(i, 1);
Expand Down

0 comments on commit 62ed9f2

Please sign in to comment.