Version : R2432
I have this question on my mind for a long time. May I know whether line 1475-78 of simcity.cc inside step_p****agiere() is unnecessary?
I have checked the code below these lines for a few times and cannot find any further reference to this local object
pax. In that case, should these lines be removed?
Thank you very much for your attention!
A wild guess would be that line 1498 should read
return_pax.menge = pax.menge;
maybe prissi can tell more
Second possibility is that pax is object whose reference is added to some system earlier and now only its values are changed... but that doesn't seem to be the case.
I would say those are leftovers. Thank you for spotting this out. (I think there are many more such gems hidden, as usually there has been seldomly one doing code review of my code.)
I may be wrong but ...
simcity.cc:1384
int pax_left_to_do = min(7, num_pax - pax_routed);
simcity.cc:1440
pax.menge = (wtyp == warenbauer_t::p****agiere ? pax_left_to_do : max(1, pax_left_to_do >> 2));
So, mail packet is always 1, isn't it ?
pax.menge = (wtyp == warenbauer_t::p****agiere ? pax_left_to_do : 1);
Should be changed indeed.