I assume that the problem has to be with the endflag variable, but I have no way to prove it. I tried watching endflag in the Debugger, but the watch window always shows "endflag = 0" even when the "YOU'VE WON..." message is being displayed and the interpreter is waiting for one of the options to be selected.*** YOU’VE WON THE GAME! ***
The game has ended. Do you want to (R)ESTART, R(E)STORE a saved game, (U)NDO your last turn, or (Q)UIT? q
>q
Are you sure you want to quit (YES or NO)? y
In the code, I trigger the endings with the EndGlag routine, like this:
Code: Select all
Endgame(1)