]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Properly apply item mass
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 11:54:43 +0000 (13:54 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 11:54:43 +0000 (13:54 +0200)
data/qcsrc/server/t_items.qc
data/qcsrc/server/vore.qc

index 7987e2063dda63498b4c36963be22304da0f1b2f..9ec15cda1fbfc84355842a43e56d0f43822e7e73 100644 (file)
@@ -264,6 +264,7 @@ void Item_Consumable_Spawn(entity e, entity pl)
        setmodel(item, e.model);\r
        item.health = e.health;\r
        item.max_health = e.max_health;\r
+       item.dmg = e.dmg;\r
 \r
        item.predator = pl;\r
        item.aiment = pl;\r
index 22528981ec0f88161868326a7f5f3af0d44b1d4d..379385e879b8c94de7c44b9075b93e942d735b47 100644 (file)
@@ -178,7 +178,7 @@ void Vore_StomachLoad_Apply()
        for(e = world; (e = find(e, classname, "consumable")); )\r
        {\r
                if(e.predator == self)\r
-                       self.stomach_load += floor(self.dmg);\r
+                       self.stomach_load += floor(e.dmg);\r
        }\r
 \r
        // apply weight\r