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

Powered by YARRSTE version: svn-trunk