From ff4eba0179f22fb2950ee5b0ef6570fdc851e79f Mon Sep 17 00:00:00 2001 From: Samir Naik Date: Sat, 27 Jan 2007 01:56:41 +0000 Subject: [PATCH] added want-demo-hacks --- direct/src/controls/PhysicsWalker.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/direct/src/controls/PhysicsWalker.py b/direct/src/controls/PhysicsWalker.py index e375a6b199..b9c540a2f3 100755 --- a/direct/src/controls/PhysicsWalker.py +++ b/direct/src/controls/PhysicsWalker.py @@ -29,7 +29,8 @@ class PhysicsWalker(DirectObject.DirectObject): notify = DirectNotifyGlobal.directNotify.newCategory("PhysicsWalker") wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) wantAvatarPhysicsIndicator = base.config.GetBool('want-avatar-physics-indicator', 0) - + wantDemoHacks = base.config.GetBool('want-demo-hacks', 0) + useLifter = 0 useHeightRay = 0 @@ -739,7 +740,7 @@ class PhysicsWalker(DirectObject.DirectObject): assert self.debugPrint("enableAvatarControls()") assert self.collisionsActive - if __debug__: + if __debug__ or self.wantDemoHacks: #self.accept("control-f3", self.spawnTest) #*# self.accept("f3", self.reset) # for debugging only. @@ -762,7 +763,7 @@ class PhysicsWalker(DirectObject.DirectObject): taskName = "AvatarControlsIndicator%s"%(id(self),) taskMgr.remove(taskName) - if __debug__: + if __debug__ or self.wantDemoHacks: self.ignore("control-f3") #*# self.ignore("f3")