]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Fixed a bug with RUN, where if a user was not logged in (playing), the
[irc/gameservirc.git] / gameserv / gameserv.cpp
index 5c03a5975dc8302aa4d53b54dd849dff3675741a..e0a9b6680468759bb4bdac7e98166c470fec1a5f 100644 (file)
@@ -25,14 +25,6 @@ List<aClient> players;
 
 Monster *monsters[LEVELS][MONSTERS];   // Monsters per level. Total = MONSTERS * LEVELS
 Monster boss;                          // The boss monster
-strcpy(boss.name, "Red Dragon");
-strcpy(boss.weapon, "Breath of Unholy Fire");
-boss.strength = 6667;
-boss.gold = 2000000000;
-boss.exp = 2000000000;
-strcpy(boss.death, "You finally snuff out the deadly murderous \"
-    "dragon's dark flames. You have freed the land of its terror \"
-    "filled reign from above!");
 
 Monster *masters[LEVELS];              // A master for each level
 
@@ -1139,6 +1131,12 @@ void do_run(char *u)
        return;
     }
 
+    else if (!is_playing(user))
+    {
+        notice(s_GameServ, u, "You must be playing to use items!");
+        return;
+    }
+
     p = user->stats;
 
     if (p->battle)