Update of /cvsroot/gcblue/gcb_wx/src/sim
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv9232/src/sim
Modified Files:
tcAirObject.cpp
Log Message:
Index: tcAirObject.cpp
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/src/sim/tcAirObject.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** tcAirObject.cpp 20 Nov 2006 00:17:43 -0000 1.33
--- tcAirObject.cpp 1 Dec 2006 03:39:54 -0000 1.34
***************
*** 494,497 ****
--- 494,525 ----
/**
+ * Automatically updates loadout tag with best guess at loadout
+ */
+ void tcAirObject::UpdateLoadoutTag()
+ {
+ if (IsEquippedForTargetType(SUBSURFACE_TARGET))
+ {
+ SetLoadoutTag("ASW");
+ }
+ else if (IsEquippedForTargetType(SURFACE_TARGET))
+ {
+ SetLoadoutTag("ASuW");
+ }
+ else if (IsEquippedForTargetType(LAND_TARGET))
+ {
+ SetLoadoutTag("STK");
+ }
+ else if (IsEquippedForTargetType(AIR_TARGET))
+ {
+ SetLoadoutTag("AAW");
+ }
+ else
+ {
+ SetLoadoutTag("---");
+ }
+
+ }
+
+ /**
* Limits speed to 100 kts min
*/
|