From: MirceaKitsune Date: Mon, 18 Jul 2011 11:12:00 +0000 (+0300) Subject: Use floor() instead of ceil() for max load, to match health better X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f66083cee3fc4cb67c7a6d4e58ea57907295f846;p=voretournament%2Fvoretournament.git Use floor() instead of ceil() for max load, to match health better --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index b8c84850..9b8c85dd 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -798,7 +798,7 @@ void Vore() self.stomach_maxload = cvar("g_balance_vore_load_pred_capacity"); if(cvar("g_healthsize")) self.stomach_maxload *= self.scale; - self.stomach_maxload = ceil(self.stomach_maxload); + self.stomach_maxload = floor(self.stomach_maxload); // attempt to swallow our new prey if we pressed the attack button, and there's any in range self.stat_canswallow = 0;