All pastes #917295 Raw Edit

afo:ai patch

public text v1 · immutable
#917295 ·published 2008-02-25 07:33 UTC
rendered paste body
Index: cl_basemanagement.c
===================================================================
--- cl_basemanagement.c	(revision 15237)
+++ cl_basemanagement.c	(working copy)
@@ -1038,6 +1038,13 @@
 				/* A few more things for first base.
 				 * @todo: this shouldn't be hard coded, but in *.ufo files */
 				if (gd.numBases == 1) {
+					aircraft_t *aircraft;
+
+					/* Manually add the aircraft- otherwise there is none. */
+					aircraft = AIR_GetAircraft("craft_drop_firebird");
+					if (aircraft)
+						AIR_NewAircraft(base, "craft_drop_firebird");
+
 					/* build a second quarter */
 					if (building->buildingType == B_QUARTERS) {
 						building = &gd.buildings[base->idx][gd.numBuildings[base->idx]];