- fix the "flying tesla" bug (and a little whitespace beside it)

I compiled it, but I'm too lazy to test it.
This commit is contained in:
Adam Olsen 2001-11-22 17:31:11 +00:00
parent 4b92b3e4e5
commit 1e8575dbf7

View file

@ -1857,12 +1857,9 @@ void(vector p1, vector p2, entity from, float damage) LightningDamage =
deathmsg = DMSG_LIGHTNING;
if (trace_ent.takedamage)
{
LightningHit (from, damage);
if (self.classname == "player")
{
if (other.classname == "player")
trace_ent.velocity_z = trace_ent.velocity_z + 400;
}
LightningHit (from, damage);
if (self.classname == "player" && trace_ent.classname == "player")
trace_ent.velocity_z = trace_ent.velocity_z + 400;
}
e1 = trace_ent;