(svn r10742) [NewGRF_ports] -Change: size_x and size_y needed to be stored in FTAClass for correct calculation of Cargo Acceptance. NewGRF_ports
authorrichk
Tue, 31 Jul 2007 23:31:45 +0000
branchNewGRF_ports
changeset 6742 1337d6c9b97b
parent 6741 7d8234e82216
child 6743 cabfaa4a0295
(svn r10742) [NewGRF_ports] -Change: size_x and size_y needed to be stored in FTAClass for correct calculation of Cargo Acceptance.
src/newgrf.cpp
--- 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