fixed conditions for adding player marks
This commit is contained in:
parent
7377f74d92
commit
db23a056ec
@ -18,7 +18,7 @@ class GameMap:
|
||||
|
||||
|
||||
def add_player_mark(self, x, y, player):
|
||||
if x <= self.max_size_x and y <= self.max_size_y:
|
||||
if (x <= self.max_size_x and y <= self.max_size_y) and (x >= 0 and y >= 0):
|
||||
self.data[(x,y)] = player
|
||||
player.record_mark(x, y)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user