From ae7c1427b95934d50bc5437e005e5772efd53079 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 5 Jun 2022 22:57:17 -0700 Subject: [PATCH] Only use defined signals --- mods/sm74/main.lua | 6 ++++++ src/pc/pc_main.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/mods/sm74/main.lua b/mods/sm74/main.lua index 8112676f0..54a4824a2 100644 --- a/mods/sm74/main.lua +++ b/mods/sm74/main.lua @@ -25,6 +25,12 @@ gBehaviorValues.dialogs.KoopaQuickThiStartDialog = DIALOG_009 gBehaviorValues.dialogs.KoopaQuickBobWinDialog = DIALOG_031 gBehaviorValues.dialogs.KoopaQuickThiWinDialog = DIALOG_031 +--------------------------- +-- force server settings -- +--------------------------- + +gServerSettings.fixCollisionBugs = 1 + -------------- -- movtexs -- -------------- diff --git a/src/pc/pc_main.c b/src/pc/pc_main.c index 5aa75b2a5..e88f4397d 100644 --- a/src/pc/pc_main.c +++ b/src/pc/pc_main.c @@ -437,9 +437,15 @@ void main_func(void) { } int main(int argc, char *argv[]) { +#ifdef SIGINT signal(SIGINT, inthand); +#endif +#ifdef SIGQUIT signal(SIGQUIT, inthand); +#endif +#ifdef SIGTERM signal(SIGTERM, inthand); +#endif parse_cli_opts(argc, argv); main_func(); return 0;