Skip to content

Commit

Permalink
Fix bug where game crashed when asking the "ritual question"
Browse files Browse the repository at this point in the history
Correct fnYESORNO so it is a FUNCTION not a SUBroutine.
  • Loading branch information
thwill1000 committed Nov 13, 2021
1 parent 7db76da commit c085908
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
ChangeLog
---------

Version 1.0.4 - 13-Nov-2021:
- Fixed bug where game crashed when asking the "ritual question";
fnYESORNO() was declared as a SUB when it was infact a FUNCTION.

Version 1.0.3 - 12-Aug-2021:
- Fixed bug where if all the population were assigned as workers then the
number of farmers would be the same as the previous season, instead of 0.
Expand Down
4 changes: 2 additions & 2 deletions src/kingdom.bas
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Cls

'!endif

Const VERSION$ = "Version 1.0.3"
Const VERSION$ = "Version 1.0.4"

twm.init(2, 3742)
'!remove_if CONSOLE_ONLY
Expand Down Expand Up @@ -744,7 +744,7 @@ End Function
' Gets 'Yes' / 'No' input from user.
'
' @return 1 if 'Yes', 0 if 'No'.
Sub fnYESORNO%()
Function fnYESORNO%()
Local x% = twm.x%
Do
twm.x% = x%
Expand Down

0 comments on commit c085908

Please sign in to comment.