triceo / drooms

Drools-based competition in a Snake-like game
3 stars 3 forks source link

Some crashed players are not removed #10

Closed triceo closed 11 years ago

triceo commented 11 years ago

I have came across a situation where two players crashed into each other and then remained in the GUI until the end of the game. The whole time, other players were able to pass through them, as if the crashed worms weren't there.

This behavior suggests that they were correctly gone, and just the GUI forgot to stop displaying them. See screenshot - green and blue are dead, grey passing through them. Screenshot

psiroky commented 11 years ago

I came across the same thing, however not sure whats the culprit. Will look at this when the time allows.

psiroky commented 11 years ago

Should be fixed by 40add28. The list of game events was incorrectly stored in opposite direction, which caused that PlayerMoved event was processed after the PlayerCrashed event (PlayerMoved added back the worm that PlayerCrashed removed before)

triceo commented 11 years ago

Fixed.