Преглед изворни кода

bugfix: include abbey tiles in total tiles played number

George C. Privon пре 7 година
родитељ
комит
f582a4f9a7
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 2 0
      CHANGELOG.md
  2. 1 1
      cgame.py

+ 2 - 0
CHANGELOG.md

@@ -18,6 +18,8 @@
 * Fixed tile counting bug when an Abbey is played.
 * Fixed missing Abbey score type when Expansion 5 is used.
   This requres running the following command in sqlite3: `update expansions set scoretypes="Abbey" where expansionID=5;`
+* Include played Abbey tiles in the total number of tiles played.
+
 
 ### 0.4.1 (18 November 2018)
 

+ 1 - 1
cgame.py

@@ -520,7 +520,7 @@ class cgame:
         _sys.stdout.write('\n')
 
         if tilestats:
-            _sys.stdout.write("{0:1.0f} tiles played, {1:1.0f} remaining.\n\n".format(self.ntile,
+            _sys.stdout.write("{0:1.0f} tiles played, {1:1.0f} remaining.\n\n".format(self.ntile + self.nabbey,
                                                                                       self.totaltiles - self.ntile))
 
         if timestats: