summaryrefslogtreecommitdiff
blob: ab9679bb019e46101fc7802c4b7da9626e1da5df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- plugins/propclass/mechanics/mechanics.cpp~	2012-07-02 12:55:27.000000000 +0200
+++ plugins/propclass/mechanics/mechanics.cpp	2012-07-13 16:48:39.875066116 +0200
@@ -89,8 +89,6 @@
     AddAction (action_setsystem, "SetSystem");
     AddAction (action_setgravity, "SetGravity");
     AddAction (action_quickstep, "QuickStep");
-    AddAction (action_enablestepfast, "EnableStepFast");
-    AddAction (action_disablestepfast, "DisableStepFast");
     AddAction (action_setsteptime, "SetStepTime");
     AddAction (action_setsimulationspeed, "SetSimulationSpeed");
   }
@@ -246,29 +244,11 @@
     dynsystem->QueryObject ()->SetName ("cel.mechanics.system");
     dynsystem->SetGravity (csVector3 (0, -9.8f, 0));
 
-    EnableStepFast ();
+    EnableQuickStep ();
   }
   return dynsystem;
 }
 
-void celPcMechanicsSystem::DisableStepFast ()
-{
-  GetDynamicSystem ();
-  if (!dynsystem) return;
-  csRef<iODEDynamicSystemState> osys= scfQueryInterface<iODEDynamicSystemState> (dynsystem);
-  if (osys)
-    osys->EnableStepFast (0);
-}
-
-void celPcMechanicsSystem::EnableStepFast ()
-{
-  GetDynamicSystem ();
-  if (!dynsystem) return;
-  csRef<iODEDynamicSystemState> osys= scfQueryInterface<iODEDynamicSystemState> (dynsystem);
-  if (osys)
-    osys->EnableStepFast (1);
-}
-
 void celPcMechanicsSystem::EnableQuickStep ()
 {
   GetDynamicSystem ();
@@ -323,14 +303,11 @@
         }
         return true;
       }
+    case action_enablestepfast:
     case action_quickstep:
       EnableQuickStep ();
       return true;
-    case action_enablestepfast:
-      EnableStepFast ();
-      return true;
     case action_disablestepfast:
-      DisableStepFast ();
       return true;
     case action_setsteptime:
       {