• R/O
  • SSH

OMP: Commit

Multiplayer platform


Commit MetaInfo

Revision97bba4bf81412a339a9efa04b28a1648ee8a9654 (tree)
Time2013-08-06 05:16:29
AuthorFace
CommiterFace

Log Message

OMPMissile: fixed bug with ground impact

Change Summary

Incremental Difference

diff -r 9fa49b642fe0 -r 97bba4bf8141 Modules/OMPMissile.dll
Binary file Modules/OMPMissile.dll has changed
diff -r 9fa49b642fe0 -r 97bba4bf8141 Orbitersdk/samples/OMP/OMPMissile/OMPMissile.cpp
--- a/Orbitersdk/samples/OMP/OMPMissile/OMPMissile.cpp Mon Aug 05 21:36:47 2013 +0200
+++ b/Orbitersdk/samples/OMP/OMPMissile/OMPMissile.cpp Mon Aug 05 22:16:29 2013 +0200
@@ -157,7 +157,7 @@
157157 SetRotationMatrix(_M(n.x, l.x, g.x, n.y, l.y, g.y, n.z, l.z, g.z));
158158 break;
159159 }
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
161161 if (state==1 && GetPropellantMass(propellant)==0)
162162 {
163163 if (!tick) tick=simt;
Show on old repository browser