ospaceteam / outerspace

Outer Space is turn-base 4X multiplayer on-line strategy game.
GNU General Public License v2.0
20 stars 9 forks source link

Lvl 1 tech description fix #296

Closed Chobotnatec closed 2 years ago

Chobotnatec commented 2 years ago

When no race choosing tech was researched, it was impossible to show info about any already researched tech as obtaining of the player race would crash. This pull request fixes the obtaining of player race and in turn also allows showing the tech info.

dahaic commented 2 years ago

As the Travis / replacement of it will take a bit more time, I have checked it manually and tests are passing.

[dahaic@scyther tests]$ git show
commit 8d7ae64b9b0e7239d0317bdd477debe3812d2b9f (HEAD -> pr_296)
[dahaic@scyther tests]$ ./unittest.sh 
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
................
----------------------------------------------------------------------
Ran 16 tests in 0.001s

OK
[dahaic@scyther tests]$ ./smoke_test.py 
INFO   : Location of logs: /tmp/tmpjquGUt
INFO   : Starting server
INFO   : Server has been initialized
INFO   : Galaxy Test named Test created (0.25s)
INFO   : Galaxy 10000 deleted
INFO   : Galaxy Test named Test created (0.26s)
INFO   : Galaxy Test named Test2 created (0.31s)
INFO   : Time has been started
INFO   : Turn 4
INFO   : Server status is present.
INFO   : Stopping server
INFO   : Server has been stopped
INFO   : No error messages found in log files
INFO   : Starting server with upgrade
INFO   : Server has been initialized
INFO   : Turn 4
INFO   : Server status is present.
INFO   : Stopping server
INFO   : Server has been stopped
INFO   : No error messages found in log files
INFO   : Starting server
INFO   : Server has been initialized
INFO   : Turn 4
INFO   : Turn 8
INFO   : Turn 12
INFO   : Turn 16
INFO   : Turn 20
INFO   : Turn 24
INFO   : Turn 28
INFO   : Turn 32
INFO   : Turn 36
INFO   : Turn 40
INFO   : Turn 44
INFO   : Turn 48
INFO   : Turn 52
INFO   : Turn 56
INFO   : Turn 60
INFO   : Server status is present.
INFO   : Stopping server
INFO   : Server has been stopped
INFO   : No error messages found in log files
INFO   : Player progress ok
[dahaic@scyther tests]$

Merging.