(svn r10742) [NewGRF_ports] -Change: size_x and size_y needed to be stored in FTAClass for correct calculation of Cargo Acceptance.
--- a/src/newgrf.cpp Tue Jul 31 22:56:30 2007 +0000
+++ b/src/newgrf.cpp Tue Jul 31 23:31:45 2007 +0000
@@ -2260,6 +2260,8 @@
fsmportspec->portFSM->nofelements = grf_load_byte(&buf);
fsmportspec->portFSM->layout = MallocT<AirportFTA>(fsmportspec->portFSM->nofelements);
fsmportspec->portFSM->moving_data = MallocT<AirportMovingData>(fsmportspec->portFSM->nofelements);
+ fsmportspec->portFSM->size_x = fsmportspec->width;
+ fsmportspec->portFSM->size_y = fsmportspec->lengths;
for (byte element = 0; element < fsmportspec->portFSM->nofelements; element++)
{
//TODO: this will load into a totally new structure for the FSMport controller to handle generically