Skip to content

Commit

Permalink
warn when Lua script cannot be used
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Dec 16, 2024
1 parent e442826 commit 17c0be7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ int main(int argc, char **argv)
return err;
}
#else
if (luafile) {
log_error("Lua is disabled, cannot execute %s", luafile);
}
run_turn();
#endif
game_done();
Expand Down

0 comments on commit 17c0be7

Please sign in to comment.