Fix edge case

This commit is contained in:
jl777
2019-02-13 06:35:56 -11:00
parent 90fbeef954
commit 1917708467
4 changed files with 33 additions and 16 deletions

View File

@@ -312,9 +312,12 @@ over:
after = FALSE;
msg(rs,"version %s. (mctesq was here)", release);
when 'S':
msg(rs,"Saving is disabled, use bailout rpc");
after = FALSE;
//save_game(rs);
#ifdef STANDALONE
save_game(rs);
#else
msg(rs,"Saving is disabled, use bailout rpc");
#endif
when '.': ; /* Rest command */
when ' ': after = FALSE; /* "Legal" illegal command */
when '^':

View File

@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include <unistd.h>
#define SMALLVAL 0.000000000000001
#define SATOSHIDEN ((uint64_t)100000000L)

View File

@@ -17,6 +17,16 @@
#undef lines
#ifdef LINES
#undef LINES
#endif
#ifdef COLS
#undef COLS
#endif
#define LINES 24
#define COLS 80
#define NOOP(x) (x += 0)
#define CCHAR(x) ( (char) (x & A_CHARTEXT) )
/*