home · contact · privacy
Server: Start hardcoded_strings s's enum names with prefix "S_".
[plomrogue] / src / server / ai.c
index bc78e06c64dc31f60574ac505561ab06f46a408f..497d35d4e633ca50a2cc9f9e81dc235755d7f603 100644 (file)
@@ -170,11 +170,11 @@ static char get_dir_to_nearest_enemy(struct Thing * t_origin)
 
 extern void ai(struct Thing * t)
 {
-    t->command = get_thing_action_id_by_name(s[CMD_WAIT]);
+    t->command = get_thing_action_id_by_name(s[S_CMD_WAIT]);
     char sel = t->fov_map ? get_dir_to_nearest_enemy(t) : 0;/* t->fov_map may */
     if (0 != sel)                                           /* be absent due  */
     {                                                       /* to god command.*/
-        t->command = get_thing_action_id_by_name(s[CMD_MOVE]);
+        t->command = get_thing_action_id_by_name(s[S_CMD_MOVE]);
         t->arg = sel;
     }
 }