# HG changeset patch
# User darkvater
# Date 1107171201 0
# Node ID 60d36b03da86f2cb214cea7e1d7a5689c807ba90
# Parent 3851739bfd09c59e3b9d2410ee0a337b24962482
(svn r1752) - Fix: MSVC acting up once again, as well as project file updates for the missing files.
diff -r 3851739bfd09 -r 60d36b03da86 npf.c
--- a/npf.c Mon Jan 31 11:23:10 2005 +0000
+++ b/npf.c Mon Jan 31 11:33:21 2005 +0000
@@ -764,10 +764,10 @@
* So only for train orders to stations we fill fstd->station_index, for all
* others only dest_coords */
if ((v->current_order.type) == OT_GOTO_STATION && v->type == VEH_Train) {
+ const Station* st = GetStation(v->current_order.station);
+ TileIndexDiffC center = {st->trainst_w/2, st->trainst_h/2};
fstd->station_index = v->current_order.station;
/* Let's take the center of the station as our target tile for trains */
- Station* st = GetStation(v->current_order.station);
- TileIndexDiffC center = {st->trainst_w/2, st->trainst_h/2};
fstd->dest_coords = TILE_ADD(st->train_tile, ToTileIndexDiff(center));
} else {
fstd->dest_coords = v->dest_tile;
diff -r 3851739bfd09 -r 60d36b03da86 ttd.dsp
--- a/ttd.dsp Mon Jan 31 11:23:10 2005 +0000
+++ b/ttd.dsp Mon Jan 31 11:33:21 2005 +0000
@@ -265,6 +265,10 @@
# End Source File
# Begin Source File
+SOURCE=.\npf.c
+# End Source File
+
+# Begin Source File
SOURCE=.\oldloader.c
# End Source File
@@ -502,6 +506,10 @@
# End Source File
# Begin Source File
+SOURCE=.\npf.h
+# End Source File
+
+# Begin Source File
SOURCE=.\pathfind.h
# End Source File
diff -r 3851739bfd09 -r 60d36b03da86 ttd.vcproj
--- a/ttd.vcproj Mon Jan 31 11:23:10 2005 +0000
+++ b/ttd.vcproj Mon Jan 31 11:33:21 2005 +0000
@@ -601,6 +601,9 @@
RelativePath=".\newgrf.c">
+
+
@@ -1212,6 +1215,9 @@
RelativePath="news.h">
+
+