Browse Source

Strategicka: fix

master
Martin Koreček 2 years ago
parent
commit
226d897eca
  1. 4
      server/hra/game.py

4
server/hra/game.py

@ -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] % self.map_height
new_position_x = id_positions[member["id"]][1] + move_vect[1] % self.map_width
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."))

Loading…
Cancel
Save