Sfoglia il codice sorgente

stop ship controls from sending out avatar type jump messages

Josh Wilson 19 anni fa
parent
commit
af24759809
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      direct/src/controls/ShipPilot2.py

+ 3 - 3
direct/src/controls/ShipPilot2.py

@@ -692,14 +692,14 @@ class ShipPilot2(PhysicsWalker):
                     # the avatar has landed.
                     contactLength = contact.length()
                     if contactLength>self.__hardLandingForce:
-                        messenger.send("jumpHardLand")
+                        messenger.send("shipJumpHardLand")
                     else:
-                        messenger.send("jumpLand")
+                        messenger.send("shipJumpLand")
                     #self.priorParent.setVector(Vec3.zero())
                     self.isAirborne = 0
                 elif jump:
                     #self.__jumpButton=0
-                    messenger.send("jumpStart")
+                    messenger.send("shipJumpStart")
                     if 0:
                         # Jump away from walls and with with the slope normal.
                         jumpVec=Vec3(contact+Vec3.up())