]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use 16 instead of 100. Needs to be done with a bitmask though.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 18:55:06 +0000 (21:55 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 18:55:06 +0000 (21:55 +0300)
qcsrc/client/gibs.qc
qcsrc/server/g_violence.qc

index f3fe88bf85def81141dc51c6e3752e7563e4b27d..af5864d79a3f56851510fdc5b78982967d682b90 100644 (file)
@@ -300,12 +300,12 @@ void Ent_DamageEffect()
 
        e = get_weaponinfo(type);
 
-       if(specnum1 >= 100)
+       if(specnum1 >= 16)
        {
-               // The server sends the specnum increased by 100 when the target is a dead body (a trick used to save bandwidth)
-               // Species range from 0 to 15, and could never reach 100, so this should never risk causing a conflict.
+               // The server sends the specnum increased by 16 when the target is a dead body (a trick used to save bandwidth)
+               // Species range from 0 to 15, so 16 could never be reached, and may be used for other info.
                // Revert the species back and mark that this is a dead body.
-               specnum1 -= 100;
+               specnum1 -= 16;
                is_body = TRUE;
        }
 
index fa32eedd9a45031b31a1101126e59dd28902fd83..f8ed4fe0d142bed64e08de11ea5b6ca4ccfffe1a 100644 (file)
@@ -85,9 +85,9 @@ void Violence_DamageEffect(entity pl, float type)
                e.team = num_for_edict(pl.owner);
 
                // Use a trick to indicate this is a copied dead body and not an alive player to the client (saves an extra WriteByte).
-               // Do this by increasing species with 100 (species range from 0 to 15, and there could never be 100 of them).
+               // Do this by increasing species with 16. Species range from 0 to 15, so 16 could never be reached, and may be used for other info.
                // The client will notice this and turn them back, while also noting what the server is trying to say.
-               e.state += 100;
+               e.state += 16;
        }
        else
                e.team = num_for_edict(pl);