diff --git a/Makefile b/Makefile index 016258796b..827363e55b 100644 --- a/Makefile +++ b/Makefile @@ -654,6 +654,7 @@ SRCS += network_server.c SRCS += network_udp.c SRCS += newgrf.c SRCS += newgrf_engine.c +SRCS += newgrf_station.c SRCS += news_gui.c SRCS += npf.c SRCS += oldloader.c @@ -686,7 +687,6 @@ SRCS += sprite.c SRCS += spritecache.c SRCS += station_cmd.c SRCS += station_gui.c -SRCS += station_newgrf.c SRCS += string.c SRCS += strings.c SRCS += subsidy_gui.c diff --git a/station_newgrf.c b/newgrf_station.c similarity index 97% rename from station_newgrf.c rename to newgrf_station.c index 1150a2376c..81ce3249aa 100644 --- a/station_newgrf.c +++ b/newgrf_station.c @@ -1,12 +1,12 @@ /* $Id$ */ -/** @file station_newgrf.c Functions for dealing with station classes and custom stations. */ +/** @file newgrf_station.c Functions for dealing with station classes and custom stations. */ #include "stdafx.h" #include "openttd.h" #include "debug.h" #include "sprite.h" -#include "station_newgrf.h" +#include "newgrf_station.h" static StationClass station_classes[STAT_CLASS_MAX]; diff --git a/station_newgrf.h b/newgrf_station.h similarity index 93% rename from station_newgrf.h rename to newgrf_station.h index b4bca4b461..60033de772 100644 --- a/station_newgrf.h +++ b/newgrf_station.h @@ -1,9 +1,9 @@ /* $Id$ */ -/** @file station_newgrf.h Header file for NewGRF stations */ +/** @file newgrf_station.h Header file for NewGRF stations */ -#ifndef STATION_NEWGRF_H -#define STATION_NEWGRF_H +#ifndef NEWGRF_STATION_H +#define NEWGRF_STATION_H #include "engine.h" @@ -74,4 +74,4 @@ uint GetNumCustomStations(StationClassID sclass); void SetCustomStation(StationSpec *spec); const StationSpec *GetCustomStation(StationClassID sclass, uint station); -#endif /* STATION_NEWGRF_H */ +#endif /* NEWGRF_STATION_H */ diff --git a/openttd.dsp b/openttd.dsp index 4c0f9aebef..f9d4f677d0 100644 --- a/openttd.dsp +++ b/openttd.dsp @@ -280,6 +280,10 @@ SOURCE=.\newgrf_engine.c # End Source File # Begin Source File +SOURCE=.\newgrf_station.c +# End Source File +# Begin Source File + SOURCE=.\npf.c # End Source File # Begin Source File @@ -413,10 +417,6 @@ SOURCE=.\spritecache.c # End Source File # Begin Source File -SOURCE=.\station_newgrf.c -# End Source File -# Begin Source File - SOURCE=.\StdAfx.c !IF "$(CFG)" == "openttd - Win32 Release" @@ -630,6 +630,10 @@ SOURCE=.\newgrf_engine.h # End Source File # Begin Source File +SOURCE=.\newgrf_station.h +# End Source File +# Begin Source File + SOURCE=.\news.h # End Source File # Begin Source File @@ -698,10 +702,6 @@ SOURCE=.\station.h # End Source File # Begin Source File -SOURCE=.\station_newgrf.h -# End Source File -# Begin Source File - SOURCE=.\StdAfx.h # End Source File # Begin Source File diff --git a/openttd.vcproj b/openttd.vcproj index 35fffbd73b..133a050b87 100644 --- a/openttd.vcproj +++ b/openttd.vcproj @@ -275,6 +275,9 @@ + + @@ -341,9 +344,6 @@ - - @@ -492,6 +492,9 @@ + + @@ -552,9 +555,6 @@ - - diff --git a/station.h b/station.h index 0f2393913c..669ee3cd73 100644 --- a/station.h +++ b/station.h @@ -8,7 +8,7 @@ #include "sprite.h" #include "tile.h" #include "vehicle.h" -#include "station_newgrf.h" +#include "newgrf_station.h" typedef struct GoodsEntry { uint16 waiting_acceptance;