X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/4e64da609969cac96e8353c3eed7b5edf961a364..903cd8615208a3e02ac9efbd881d73c409f996e2:/gameserv/gameserv.cpp diff --git a/gameserv/gameserv.cpp b/gameserv/gameserv.cpp index 0e77f86..1929a2f 100644 --- a/gameserv/gameserv.cpp +++ b/gameserv/gameserv.cpp @@ -3012,6 +3012,8 @@ void timeOutEvent(Player *p) } else if (!player_fight(user)) { + if (isAlive(user) && user->stats->gold > 0) + { // Place fun stuff here :) int randnum = 1 + rand() % 100; // 1-100 #define GSN(s) notice(s_GameServ, nick, s) @@ -3050,7 +3052,7 @@ void timeOutEvent(Player *p) GSN2("They stole %d gold from you!", stolen); user->stats->gold -= stolen; } - + } // Always log out the user logout(user);