IRC logs for #openttd.dev on OFTC at 2015-11-08
            
09:30:02 *** Supercheese has quit IRC
11:54:22 *** frosch123 has joined #openttd.dev
11:54:22 *** ChanServ sets mode: +v frosch123
13:08:08 *** juzza1 has quit IRC
13:51:25 *** adf88 has joined #openttd.dev
13:51:25 *** ChanServ sets mode: +v adf88
13:52:20 <adf88> could someone remind me
13:52:32 <adf88> what's the speed of trains on vert/horz tracks
13:52:41 <adf88> when comapred to x/y tracks?
13:52:59 <adf88> lest's say a train goes one tile per tick on x/y track
13:53:29 <adf88> what's the manhattan distance it passes on vert/horz tracks during a single tick?
13:53:33 <frosch123> return (this->direction & 1) ? 192 : 256;
13:53:38 <frosch123> @calc 192/256
13:53:38 <DorpsGek> frosch123: 0.75
13:53:53 <frosch123> @calc 256/192
13:53:53 <DorpsGek> frosch123: 1.33333333333
13:54:02 <frosch123> that's an approximation of sqrt(2)
13:54:24 <frosch123> anyway, see Vehicle::GetAdvanceDistance
13:55:08 <adf88> thanks!
15:05:43 <adf88> right answer is
15:05:45 <adf88> @calc 2*192/256
15:05:45 <DorpsGek> adf88: 1.5
15:06:26 <adf88> because 192 is related to chebyshev distance
15:06:34 <adf88> I asked about manhattan
15:08:44 <adf88> i confirmed it experimentally ;)
15:12:03 *** juzza1 has joined #openttd.dev
16:22:35 *** adf88 has quit IRC
19:16:20 <frosch123> @services op
19:16:20 *** ChanServ sets mode: +o DorpsGek
21:57:59 *** Supercheese has joined #openttd.dev
21:57:59 *** ChanServ sets mode: +v Supercheese
23:23:20 *** frosch123 has quit IRC