From: Patrick H. <ac...@us...> - 2004-08-29 23:27:59
|
Update of /cvsroot/vegastrike/vegastrike/src/gfx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31054/gfx Modified Files: cockpit.cpp Log Message: fixed auto so its an option wrt light Index: cockpit.cpp =================================================================== RCS file: /cvsroot/vegastrike/vegastrike/src/gfx/cockpit.cpp,v retrieving revision 1.254 retrieving revision 1.255 diff -C2 -r1.254 -r1.255 *** cockpit.cpp 28 Jul 2004 06:06:25 -0000 1.254 --- cockpit.cpp 29 Aug 2004 23:27:51 -0000 1.255 *************** *** 819,824 **** static int wasautopilot=0; int abletoautopilot=0; if (target) { ! abletoautopilot=(target->graphicOptions.InWarp); } if (abletoautopilot!=wasautopilot) { --- 819,829 ---- static int wasautopilot=0; int abletoautopilot=0; + static bool auto_valid = XMLSupport::parse_bool (vs_config->getVariable ("physics","insystem_jump_or_timeless_auto-pilot","false")); if (target) { ! if (!auto_valid) { ! abletoautopilot=(target->graphicOptions.InWarp); ! }else { ! abletoautopilot=(target->AutoPilotTo(target,false)?1:0); ! } } if (abletoautopilot!=wasautopilot) { |