Multiplayer platform
Revision | 97bba4bf81412a339a9efa04b28a1648ee8a9654 (tree) |
---|---|
Time | 2013-08-06 05:16:29 |
Author | Face |
Commiter | Face |
OMPMissile: fixed bug with ground impact
@@ -157,7 +157,7 @@ | ||
157 | 157 | SetRotationMatrix(_M(n.x, l.x, g.x, n.y, l.y, g.y, n.z, l.z, g.z)); |
158 | 158 | break; |
159 | 159 | } |
160 | - if (state==1 && GroundContact()) state=2, tick=0; //Impact while active | |
160 | + if (state==1 && GroundContact()) state=2, tick=0, target=NULL; //Impact while active | |
161 | 161 | if (state==1 && GetPropellantMass(propellant)==0) |
162 | 162 | { |
163 | 163 | if (!tick) tick=simt; |