]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a spelling error in the api. (ouch) :-)
authorcurt <curt>
Mon, 3 Feb 2003 22:22:02 +0000 (22:22 +0000)
committercurt <curt>
Mon, 3 Feb 2003 22:22:02 +0000 (22:22 +0000)
src/Systems/electrical.cxx
src/Systems/electrical.hxx

index 2559874cace44b644658ab9f3e962a829e44c01f..240a798686e296479c8742f9ce643bb63bd1fde3 100644 (file)
@@ -301,10 +301,10 @@ void FGElectricalSystem::update (double dt) {
         connectors[i]->set_value( 0.0 );
     }
 
-    // for each supplier, propogate the electrical current
+    // for each supplier, propagate the electrical current
     for ( i = 0; i < suppliers.size(); ++i ) {
         // cout << " Updating: " << suppliers[i]->get_name() << endl;
-        propogate( suppliers[i], 0.0, " " );
+        propagate( suppliers[i], 0.0, " " );
     }
 
 }
@@ -346,8 +346,8 @@ bool FGElectricalSystem::build () {
 }
 
 
-// propogate the electrical current through the network
-void FGElectricalSystem::propogate( FGElectricalComponent *node, double val,
+// propagate the electrical current through the network
+void FGElectricalSystem::propagate( FGElectricalComponent *node, double val,
                                     string s ) {
     s += " ";
 
@@ -388,9 +388,9 @@ void FGElectricalSystem::propogate( FGElectricalComponent *node, double val,
     }
     // cout << s << node->get_name() << " -> " << node->get_value() << endl;
 
-    // propogate to all children
+    // propagate to all children
     for ( i = 0; i < node->get_num_outputs(); ++i ) {
-        propogate( node->get_output(i), current, s );
+        propagate( node->get_output(i), current, s );
     }
 }
 
index 30c3cc33ce753436900491d3757793f73b591ee4..3b20d298c5a34791eee37f560a60542368792d04 100644 (file)
@@ -204,7 +204,7 @@ public:
     virtual void update (double dt);
 
     bool build ();
-    void propogate( FGElectricalComponent *node, double val, string s = "" );
+    void propagate( FGElectricalComponent *node, double val, string s = "" );
     FGElectricalComponent *find ( const string &name );
 
 protected: