home · contact · privacy
Server: Correct AI description.
[plomrogue] / src / server / run.c
index 786b280adb050a64b47edc19e1cecdad46ad55bb..b715ca4e74329617085f9dc4317e4f4202d060b2 100644 (file)
@@ -1,4 +1,9 @@
-/* src/server/run.c */
+/* src/server/run.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
 
 #define _POSIX_C_SOURCE 200809L
 #include "run.h"
@@ -75,8 +80,7 @@ static uint8_t player_commands_allowed()
 {
     if (!world.exists)
     {
-        err_line(1, "No world exists in which to run player commands.");
-        return 0;
+        return !err_line(1, "No world exists in which to run player commands.");
     }
     return 1;
 }