fix more fish bingo crashes
This commit is contained in:
parent
d6c0975c05
commit
744f9c4d3b
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class BingoCardCell(DirectButton, FSM.FSM):
|
||||||
DirectButton.__init__(self, parent)
|
DirectButton.__init__(self, parent)
|
||||||
FSM.FSM.__init__(self, 'BingoCardCell')
|
FSM.FSM.__init__(self, 'BingoCardCell')
|
||||||
self.initialiseoptions(BingoCardCell)
|
self.initialiseoptions(BingoCardCell)
|
||||||
self.parent = parent
|
self._parent = parent
|
||||||
self.fish = fish
|
self.fish = fish
|
||||||
self.cellId = cellId
|
self.cellId = cellId
|
||||||
self.request('Off')
|
self.request('Off')
|
||||||
|
|
|
@ -194,7 +194,7 @@ class BingoCardGui(DirectFrame):
|
||||||
for i in range(rowSize):
|
for i in range(rowSize):
|
||||||
for j in range(self.game.getColSize()):
|
for j in range(self.game.getColSize()):
|
||||||
color = self.getCellColor(i * rowSize + j)
|
color = self.getCellColor(i * rowSize + j)
|
||||||
if i * rowSize + j == self.game.getCardSize() / 2:
|
if i * rowSize + j == self.game.getCardSize() // 2:
|
||||||
tmpFish = 'Free'
|
tmpFish = 'Free'
|
||||||
else:
|
else:
|
||||||
choice = rng.randrange(0, len(fishList))
|
choice = rng.randrange(0, len(fishList))
|
||||||
|
|
Loading…
Reference in a new issue