|
|
@ -238,8 +238,8 @@ class Occupy(Logic): |
|
|
|
if member["action"] is None: |
|
|
|
continue |
|
|
|
move_vect = self.MOVE_VECTORS[member["action"]] |
|
|
|
new_position_y = id_positions[member["id"]][0] + move_vect[0] |
|
|
|
new_position_x = id_positions[member["id"]][1] + move_vect[1] |
|
|
|
new_position_y = id_positions[member["id"]][0] + move_vect[0] % self.map_height |
|
|
|
new_position_x = id_positions[member["id"]][1] + move_vect[1] % self.map_width |
|
|
|
if hills[new_position_y][new_position_x]: |
|
|
|
warns.append(self.generate_warn(member["id"], "Voják se snaží vylézt na skálu, což nejde.")) |
|
|
|
|
|
|
|