(svn r6644) -Fix(r6637): remove inline to allow MSVC compilation
authorbelugas
Thu, 05 Oct 2006 02:26:27 +0000
changeset 4732 da9d305d1c94
parent 4731 0febcf07eb48
child 4733 6f69ecf19282
(svn r6644) -Fix(r6637): remove inline to allow MSVC compilation
-Fix(r5124): Add aircraft.h to MSVC projects
aircraft.h
aircraft_cmd.c
openttd.vcproj
openttd_vs80.vcproj
--- a/aircraft.h	Thu Oct 05 01:43:49 2006 +0000
+++ b/aircraft.h	Thu Oct 05 02:26:27 2006 +0000
@@ -21,6 +21,6 @@
 uint16 AircraftDefaultCargoCapacity(CargoID cid, EngineID engine_type);
 
 void CcCloneAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2);
-inline void HandleAircraftEnterHangar(Vehicle *v);
+void HandleAircraftEnterHangar(Vehicle *v);
 
 #endif /* AIRCRAFT_H */
--- a/aircraft_cmd.c	Thu Oct 05 01:43:49 2006 +0000
+++ b/aircraft_cmd.c	Thu Oct 05 02:26:27 2006 +0000
@@ -834,11 +834,9 @@
 }
 
 /** Handle Aircraft specific tasks when a an Aircraft enters a hangar
- * Made inline because it's only called from one location (VehicleEnterDepot)
- * Can't be moved to vehicle.c because it calls static Aircraft specific functions
  * @param *v Vehicle that enters the hangar
  */
-inline void HandleAircraftEnterHangar(Vehicle *v)
+void HandleAircraftEnterHangar(Vehicle *v)
 {
 	Vehicle *u;
 
--- a/openttd.vcproj	Thu Oct 05 01:43:49 2006 +0000
+++ b/openttd.vcproj	Thu Oct 05 02:26:27 2006 +0000
@@ -428,6 +428,9 @@
 			Name="Header Files"
 			Filter="h;hpp;hxx;hm;inl">
 			<File
+				RelativePath=".\aircraft.h">
+			</File>
+			<File
 				RelativePath=".\airport.h">
 			</File>
 			<File
--- a/openttd_vs80.vcproj	Thu Oct 05 01:43:49 2006 +0000
+++ b/openttd_vs80.vcproj	Thu Oct 05 02:26:27 2006 +0000
@@ -856,6 +856,10 @@
 			Filter="h;hpp;hxx;hm;inl"
 			>
 			<File
+				RelativePath=".\aircraft.h"
+				>
+			</File>
+			<File
 				RelativePath=".\airport.h"
 				>
 			</File>