equal
deleted
inserted
replaced
302 |
302 |
303 /** new acceleration*/ |
303 /** new acceleration*/ |
304 static int GetTrainAcceleration(Vehicle *v, bool mode) |
304 static int GetTrainAcceleration(Vehicle *v, bool mode) |
305 { |
305 { |
306 int max_speed = 2000; |
306 int max_speed = 2000; |
307 int speed = v->GetDisplaySpeed(); //[mph] |
307 int speed = v->cur_speed * 10 / 16; // km-ish/h -> mp/h |
308 int curvecount[2] = {0, 0}; |
308 int curvecount[2] = {0, 0}; |
309 |
309 |
310 /*first find the curve speed limit */ |
310 /*first find the curve speed limit */ |
311 int numcurve = 0; |
311 int numcurve = 0; |
312 int sum = 0; |
312 int sum = 0; |