Commit MetaInfo

Révisionfb2fa2b2a8b54316de685a5c72064cd945c22976 (tree)
l'heure2013-03-08 03:15:30
AuteurFace
CommiterFace

Message de Log

Genericvessel: fixed comment typo and crash without payloads

Change Summary

Modification

diff -r 607204472c37 -r fb2fa2b2a8b5 Orbitersdk/samples/genericvessel/GenericVessel.cpp
--- a/Orbitersdk/samples/genericvessel/GenericVessel.cpp Thu Mar 07 19:14:46 2013 +0100
+++ b/Orbitersdk/samples/genericvessel/GenericVessel.cpp Thu Mar 07 19:15:30 2013 +0100
@@ -241,7 +241,8 @@
241241 for(i=0;i<sc3.Config.mshcnt;i++){
242242 if(sc3.Data.msh[i].typ==0)SetMeshVisibilityMode(msh_idh[i]=AddMesh(msh_h[i]=oapiLoadMeshGlobal(sc3.Data.msh[i].nam),&sc3.Data.msh[i].off),sc3.Data.msh[i].vis);
243243 }
244- for(i=0;i<sc3.Data.pay[i].mesh_cnt;i++)DelMesh(sc3.Data.pay[i].mesh+i); //Delete payload meshes again, native parser does it, anyway
244+ for(i=0;i<sc3.Config.paycnt;i++)
245+ for(j=0;j<sc3.Data.pay[i].mesh_cnt;j++)DelMesh(sc3.Data.pay[i].mesh+j); //Delete payload meshes again, native parser does it, anyway
245246
246247 //Animations
247248 ani=new genericvessel_animinfo[sc3.Config.anicnt];
diff -r 607204472c37 -r fb2fa2b2a8b5 Orbitersdk/samples/genericvessel/SC3Data.h
--- a/Orbitersdk/samples/genericvessel/SC3Data.h Thu Mar 07 19:14:46 2013 +0100
+++ b/Orbitersdk/samples/genericvessel/SC3Data.h Thu Mar 07 19:15:30 2013 +0100
@@ -26,7 +26,7 @@
2626 private:
2727 // mesh name of payload. You can define up to 5 meshes for one
2828 // payload, they must be declared in the same string, with each mesh name separated by a ;
29- // (semi-column). Ex: mesh1;mesh2
29+ // (semi-colon). Ex: mesh1;mesh2
3030 vector<char *> meshname;
3131
3232 // the name that will be given to the vessel at payload release time
Afficher sur ancien navigateur de dépôt.