Limit g_balance_vore_swallow_limit between 1 and 9. This fixes some small bugs, such...
[voretournament/voretournament.git] / data / qcsrc / server / cl_client.qc
index edb5886..3062930 100644 (file)
@@ -436,9 +436,9 @@ string setmodel_state()
        newmodel_extension = substring(self.playermodel, strlen(self.playermodel) - 4, 4);\r
 \r
        float vore_state;\r
-       if(self.stomach_load > ceil(cvar("g_balance_vore_swallow_limit") * 0.666666666666))\r
+       if(self.stomach_load > ceil(g_balance_vore_swallow_limit * 0.666666666666))\r
                vore_state = 3;\r
-       else if(self.stomach_load > ceil(cvar("g_balance_vore_swallow_limit") * 0.333333333333))\r
+       else if(self.stomach_load > ceil(g_balance_vore_swallow_limit * 0.333333333333))\r
                vore_state = 2;\r
        else if(self.stomach_load)\r
                vore_state = 1;\r
@@ -1043,7 +1043,7 @@ float ClientInit_SendEntity(entity to, float sf)
        WriteByte(MSG_ENTITY, cvar("g_balance_weaponswitchdelay") * 255.0);\r
 \r
        WriteCoord(MSG_ENTITY, cvar("g_vore"));\r
-       WriteCoord(MSG_ENTITY, cvar("g_balance_vore_swallow_limit"));\r
+       WriteCoord(MSG_ENTITY, g_balance_vore_swallow_limit);\r
        return TRUE;\r
 }\r
 \r