]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/c_forest.cpp
Changed configscript.cpp to a smaller shell script
[irc/gameservirc.git] / gameserv / c_forest.cpp
index 623787ec11e74bac393a006c560a92733912ef2a..ea73aac879fd784102c575d77151c9e62534dea7 100644 (file)
@@ -58,13 +58,14 @@ void do_forest(char *u)
     }
     else 
     {
+       updateTS(source->stats);
         if (p->forest_fights <= 0)
         {
             notice(s_GameServ, u, "You are out of forest fights for the day. Wait "\
                 "till tomorrow!");
             return;
         }
-        else if (!is_fighting(u))
+        else if (!is_fighting(source))
         {
            int eventnum = rand() % 100;
            p->forest_fights--;