Skip to content
Snippets Groups Projects
Commit 391b1f08 authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Other players cannot be pushed outside the world border

parent 103df462
No related branches found
No related tags found
1 merge request!16Resolve "Fix player collision: Can push other players into each others, can push players out of the world"
......@@ -232,7 +232,7 @@ class Environment:
collided_player.move(pushing_vector * (collided_player.move_dist / 2))
if self.detect_collision_counters(
collided_player
) or self.detect_collision_world_bounds(player):
) or self.detect_collision_world_bounds(collided_player):
collided_player.move_abs(old_pos_other)
player.move_abs(old_pos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment