Old revision #pe2rbusr7 | New revision #pfsukyjwq | ||
---|---|---|---|
19 | + inline uint GetAdvanceSpeed(uint speed) | 19 | + inline uint GetAdvanceSpeed(uint speed) |
20 | { | 20 | { |
21 | - return speed * 3 / 4; | 21 | - return speed * 3 / 4; |
22 | + return (this->type == VEH_TRAIN) ? (this->direction & 1) ? speed * 3 / 4 : speed / 2 : | 22 | + return (this->type == VEH_TRAIN) ? (this->direction & 1) ? speed * 3 / 4 : speed / 2 : speed * 3 / 4; |
23 | } | 23 | } |
24 | 24 | ||
25 | /** | 25 | /** |