aboutsummaryrefslogtreecommitdiff
path: root/tsalis/src
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
commit9442040891f239ae3d53982cffe4176012f3ef20 (patch)
treecd1f09f2e05246eac89ef2f2a9616ad94956b2b4 /tsalis/src
parentac1312be2d4357e77244137ce0f349b1665ecb62 (diff)
Modified quit-without-save command.
Diffstat (limited to 'tsalis/src')
-rw-r--r--tsalis/src/handler.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tsalis/src/handler.c b/tsalis/src/handler.c
index 265df47..e886733 100644
--- a/tsalis/src/handler.c
+++ b/tsalis/src/handler.c
@@ -163,11 +163,10 @@ runConsole(void)
switch (command[0]) {
case 'q':
- s_save(g_simName);
- g_exit = STRUE;
- break;
+ if (command[1] != '!') {
+ s_save(g_simName);
+ }
- case 'x':
g_exit = STRUE;
break;