X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FObjects%2FWeapons.cpp;h=a6a1786736897d38e198661869c2fe09fa9d148d;hb=5884b0e5754add3bdf24a2e1f27cd5444d0813f8;hp=0126c2e01ed547d8a6c50c5018169b66978734fc;hpb=ed3662c0852c4312a612b4fc35bd03aba8d13db7;p=lugaru.git diff --git a/Source/Objects/Weapons.cpp b/Source/Objects/Weapons.cpp index 0126c2e..a6a1786 100644 --- a/Source/Objects/Weapons.cpp +++ b/Source/Objects/Weapons.cpp @@ -100,7 +100,6 @@ void Weapon::setType(int t) void Weapon::DoStuff(int i) { - //~ cout << position.x << "," << position.y << "," << position.z << "|" << tippoint.x << "," << tippoint.y << "," << tippoint.z << endl; static int whichpatchx, whichpatchz, whichhit; static XYZ start, end, colpoint, normalrot, footvel, footpoint; static XYZ terrainnormal; @@ -118,6 +117,10 @@ void Weapon::DoStuff(int i) static XYZ closestswordpoint; static float tempmult; + if (multiplier <= 0) { + return; + } + if (owner != -1) { oldowner = owner; }