Commit 00dfe6c3 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

change initialization of Player.lastTile, fixes a regression (which one?)

parent 4eafdc99
......@@ -25,6 +25,7 @@ from wind import Wind, East
from query import Query
from rule import Ruleset
from tile import Tile, elements
from tilesource import TileSource
from sound import Voice
from wall import Wall
from move import Move
......@@ -794,6 +795,7 @@ class PlayingGame(Game):
self.defaultNameBrush = None
Game.__init__(self, names, ruleset,
gameid, wantedGame=wantedGame, client=client)
self.players['E'].lastSource = TileSource.East14th
self.playOpen = playOpen
self.autoPlay = autoPlay
myself = self.myself
......
......@@ -141,7 +141,7 @@ class Player(StrMixin):
self.handCache = {}
self.cacheHits = 0
self.cacheMisses = 0
self.__lastSource = TileSource.East14th
self.__lastSource = TileSource.Unknown
self.clearHand()
self.handBoard = None
......@@ -195,7 +195,7 @@ class Player(StrMixin):
self.newHandContent = None
self.originalCallingHand = None
self.__lastTile = None
self.lastSource = TileSource.East14th
self.lastSource = TileSource.Unknown
self.lastMeld = Meld()
self.__mayWin = True
self.__payment = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment