diff xrogue/player.c @ 239:837044d2c362

Merge the GCC5 and build fix branches. This fixes all warnings produced by GCC 5, except the ones related to system functions. Those could be fixed by including the proper headers, but it would be better to replace the system-dependent code with functions from mdport.c.
author John "Elwin" Edwards
date Fri, 11 Mar 2016 19:47:52 -0500
parents 2236ef808bcb
children
line wrap: on
line diff
--- a/xrogue/player.c	Tue Mar 08 19:45:41 2016 -0500
+++ b/xrogue/player.c	Fri Mar 11 19:47:52 2016 -0500
@@ -510,7 +510,7 @@
                 /* just let him roam around */
                 turn_on(*th, ISRUN);
                 if (on(*th, ISFLEE)) turn_off(*th, ISFLEE);
-                runto(th, &player);
+                runto(th, &hero);
                 th->t_action = A_NIL;
                 return;
                 }
@@ -537,7 +537,7 @@
                             turn_on(*th, ISRUN);
                         if (on(*th, ISFLEE))
                                         turn_off(*th, ISFLEE);
-                        runto(th, &player);
+                        runto(th, &hero);
                         th->t_action = A_NIL;
                         return;
                         }