]> git.mxchange.org Git - flightgear.git/commitdiff
Show a message when pausing the sim.
authorJames Turner <zakalawe@mac.com>
Sat, 16 Mar 2013 12:44:43 +0000 (12:44 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 16 Mar 2013 12:44:43 +0000 (12:44 +0000)
src/Main/fg_commands.cxx

index f1909c1fa551bca04d470942bc3f43af8fd9d4fa..27980afba5077834d1ac8067236b0de7d1a1dbe5 100644 (file)
@@ -235,6 +235,16 @@ do_pause (const SGPropertyNode * arg)
         fgSetBool("/sim/freeze/master",!paused);
         fgSetBool("/sim/freeze/clock",!paused);
     }
+  
+    SGPropertyNode_ptr args(new SGPropertyNode);
+    args->setStringValue("id", "sim-pause");
+    if (!paused) {
+      args->setStringValue("label", "Simulation is paused");
+      globals->get_commands()->execute("show-message", args);
+    } else {
+      globals->get_commands()->execute("clear-message", args);
+    }
+  
     return true;
 }