src/train_cmd.cpp
changeset 8057 624ab0243ea2
parent 8047 bcc7782ef238
child 8089 a172d415e963
equal deleted inserted replaced
8056:1020455bfd81 8057:624ab0243ea2
   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;