Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
00dfe6c3
Commit
00dfe6c3
authored
Jan 29, 2022
by
Wolfgang Rohdewald
Browse files
change initialization of Player.lastTile, fixes a regression (which one?)
parent
4eafdc99
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/game.py
View file @
00dfe6c3
...
...
@@ -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
...
...
src/player.py
View file @
00dfe6c3
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment