Times are UTC Toggle Colours
00:08:26 *** cboyd_ has quit IRC 00:22:27 *** Thedarkb-T60 has joined #openttd 00:25:51 *** tokai|noir has joined #openttd 00:25:51 *** ChanServ sets mode: +v tokai|noir 00:32:54 *** tokai has quit IRC 00:40:37 *** Samu has quit IRC 00:48:48 *** berndj-blackout is now known as berndj 00:56:07 *** Supercheese has joined #openttd 01:05:13 *** Progman has quit IRC 01:28:02 *** Stimrol has quit IRC 01:29:43 *** tokai has joined #openttd 01:29:43 *** ChanServ sets mode: +v tokai 01:30:34 *** Stimrol has joined #openttd 01:35:44 *** tokai|noir has quit IRC 01:42:55 *** HerzogDeXtEr has quit IRC 03:06:38 *** glx has quit IRC 03:10:44 *** haudrauf has quit IRC 03:10:59 *** Supercheese has quit IRC 03:11:42 *** haudrauf has joined #openttd 03:27:14 *** triolus has joined #openttd 03:42:49 *** triolus has joined #openttd 04:21:12 *** triolus has quit IRC 04:31:38 *** snail_UES_ has quit IRC 04:40:12 *** triolus has joined #openttd 05:11:10 *** sla_ro|master has joined #openttd 05:25:41 *** Wacko1976 has joined #openttd 05:47:57 *** triolus has quit IRC 05:47:57 *** Gustavo6046 has quit IRC 05:47:57 *** ToBeFree has quit IRC 05:47:57 *** quiznilo has quit IRC 05:47:57 *** acklen has quit IRC 05:47:57 *** Extrems has quit IRC 05:47:57 *** mikegrb has quit IRC 05:47:57 *** Tharbakim has quit IRC 05:47:57 *** HeyCitizen has quit IRC 05:47:57 *** greeter has quit IRC 05:50:37 *** triolus has joined #openttd 05:50:37 *** Gustavo6046 has joined #openttd 05:50:37 *** ToBeFree has joined #openttd 05:50:37 *** quiznilo has joined #openttd 05:50:37 *** acklen has joined #openttd 05:50:37 *** Extrems has joined #openttd 05:50:37 *** mikegrb has joined #openttd 05:50:37 *** Tharbakim has joined #openttd 05:50:37 *** HeyCitizen has joined #openttd 05:50:37 *** greeter has joined #openttd 06:43:31 *** greeter has quit IRC 06:43:31 *** HeyCitizen has quit IRC 06:43:31 *** Extrems has quit IRC 06:43:31 *** acklen has quit IRC 06:43:31 *** quiznilo has quit IRC 06:43:31 *** Gustavo6046 has quit IRC 06:43:31 *** triolus has quit IRC 06:43:31 *** Tharbakim has quit IRC 06:43:31 *** mikegrb has quit IRC 06:43:31 *** ToBeFree has quit IRC 06:46:10 *** techmagus has quit IRC 06:46:18 *** techmagus has joined #openttd 06:47:13 *** triolus has joined #openttd 06:47:13 *** Gustavo6046 has joined #openttd 06:47:13 *** ToBeFree has joined #openttd 06:47:13 *** quiznilo has joined #openttd 06:47:13 *** acklen has joined #openttd 06:47:13 *** Extrems has joined #openttd 06:47:13 *** mikegrb has joined #openttd 06:47:13 *** Tharbakim has joined #openttd 06:47:13 *** HeyCitizen has joined #openttd 06:47:13 *** greeter has joined #openttd 07:14:31 *** mikegrb has quit IRC 07:14:37 *** mikegrb has joined #openttd 07:38:21 *** nielsm has joined #openttd 07:59:13 *** Progman has joined #openttd 08:28:29 *** matt21347 has joined #openttd 08:36:09 *** gelignite has joined #openttd 08:40:34 *** Stimrol_ has joined #openttd 08:40:34 *** Stimrol has quit IRC 08:47:47 *** Thedarkb-T60 has quit IRC 09:00:02 *** HerzogDeXtEr has joined #openttd 10:15:26 *** Progman has quit IRC 10:51:19 *** Thedarkb-T60 has joined #openttd 11:11:04 *** Thedarkb-T60 has quit IRC 11:16:16 *** Thedarkb-T60 has joined #openttd 11:24:24 *** Thedarkb-T60 has quit IRC 11:29:32 *** Thedarkb-T60 has joined #openttd 11:35:07 *** frosch123 has joined #openttd 11:52:01 *** wodencafe has joined #openttd 11:57:24 <nielsm> what a silent weekend, this one 11:57:32 <Eddi|zuHause> and you broke it 11:57:37 <nielsm> yes 12:06:24 <Arveen> rekt 12:15:59 *** Samu has joined #openttd 12:23:02 <greeter> oh i thought today was monday, yeah it's broken now 12:26:39 *** Thedarkb-T60 has quit IRC 12:30:44 *** APTX_ has quit IRC 12:30:51 *** APTX_ has joined #openttd 12:36:42 *** sim-al2 has joined #openttd 13:08:30 *** Thedarkb has joined #openttd 13:53:06 *** Mahjong1 has joined #openttd 14:00:28 <Samu> 170 km/h wins 14:00:28 *** Stimrol_ has quit IRC 14:00:29 <Samu> winds 14:00:44 *** Mahjong has quit IRC 14:04:18 *** glx has joined #openttd 14:04:18 *** ChanServ sets mode: +v glx 14:10:34 *** Stimrol has joined #openttd 14:17:53 *** Flygon has quit IRC 14:27:47 *** snail_UES_ has joined #openttd 14:34:43 *** sim-al2 has quit IRC 14:41:03 *** Wormnest has joined #openttd 15:14:54 *** gelignite has quit IRC 15:32:02 *** wodencafe has quit IRC 16:18:42 *** Thedarkb has quit IRC 16:43:24 *** Wacko1976 has quit IRC 16:51:51 <LordAro> frosch123: newgrf.cpp:3790, is there a missing break, or are the size & copy_from assignments just redundant? 16:51:55 *** Thedarkb has joined #openttd 16:52:31 <LordAro> similar situation at 3475 17:00:24 <frosch123> what a crappy piece of code 17:00:52 <LordAro> mm 17:00:56 <frosch123> anyway, there should be no "break". the assignment of "size" and "copy_from" is pointless 17:01:10 <LordAro> thought as much 17:01:16 <frosch123> copy_from in a whole seems to pointless 17:01:25 <LordAro> i noticed it was newgrf airport layouts, so wondered if the code was just unused :) 17:01:33 <LordAro> s/unusued/untried/ 17:01:45 <frosch123> att seems to be some std::vector, which has a preassigned size of "defsize" 17:01:49 <frosch123> but nothing is checked ever 17:02:25 <LordAro> sounds about right :) 17:02:31 <frosch123> no, it's not unused, it's probably even the most used case 17:02:58 <LordAro> (i've gotten scan-build working, am going through some of the reported "issues") 17:03:47 *** gelignite has joined #openttd 17:03:48 *** Wacko1976 has joined #openttd 17:04:04 <LordAro> https://i.imgur.com/ox3pQhv.png many of them look like this 17:04:18 <frosch123> oh, industries layouts even check def_num_tiles :) 17:04:23 <frosch123> so, that part was not copied to airports 17:16:28 *** Progman has joined #openttd 17:30:29 *** andythenorth has joined #openttd 17:34:24 <andythenorth> o/ 17:35:42 <LordAro> /o 17:36:14 *** Thedarkb has quit IRC 17:38:43 <andythenorth> so 17:38:46 <andythenorth> I broke bananas :) 17:39:02 <andythenorth> "Unhandled Exception" when trying to update FIRS 17:41:42 <LordAro> gj 17:42:09 <andythenorth> GG, WP 17:43:43 <frosch123> if it was on devzone i would guess for disk full 17:43:47 <frosch123> no idea about ottd :) 17:43:59 *** Thedarkb has joined #openttd 17:46:06 <andythenorth> need a brain 17:52:19 *** Gustavo6046 has quit IRC 17:57:09 *** Gustavo6046 has joined #openttd 18:01:31 *** wodencafe has joined #openttd 18:04:38 *** andythenorth has quit IRC 18:12:45 *** andythenorth has joined #openttd 18:21:55 *** andythenorth has quit IRC 18:40:02 *** Thedarkb-T60 has joined #openttd 18:59:54 *** Gja has joined #openttd 19:01:27 *** HeyCitizen_ has joined #openttd 19:02:09 *** triolus has quit IRC 19:05:19 *** HeyCitizen has quit IRC 19:15:07 *** andythenorth has joined #openttd 19:16:55 *** Gja has quit IRC 19:19:57 *** andythenorth has quit IRC 19:21:19 *** andythenorth has joined #openttd 19:25:07 <LordAro> frosch123: tree_cmd.cpp:718 calls AddTreeCount with a value of -1... which is then does `-1 << 6`, which is undefined 19:25:10 <LordAro> thoughts? 19:26:16 <nielsm> is it really,undefined? 19:27:10 <nielsm> I'd expect it to shift in 6 zeroes, effectively multiplying by 64 19:28:00 <frosch123> "-1 << 6" is not undefined 19:28:04 <frosch123> but likely not intentional 19:28:28 <frosch123> actually, it is just fine 19:29:49 <frosch123> so, yeah, i see nothing wrong with that 19:30:13 <frosch123> it correctly decrements the treecount by one 19:32:46 <LordAro> bitshifting negative numbers is undefined, last time i checked 19:33:26 <frosch123> the right-hand side must be >= 0 19:33:30 <frosch123> but the left is just fine 19:33:48 <frosch123> << works fine with negative left side 19:34:23 <frosch123> >> is a bit more tricky since ((uint)-1) >> 1 != ((int)-1 >> 1) 19:35:20 <frosch123> right-hand side must be >= 0 and < total number of bits to be well defined in languages which directly translate it to assembler 19:35:40 <frosch123> since most(all?) processors just mask it to 5/6/... bits 19:38:30 <LordAro> https://stackoverflow.com/a/8416000 seems to disagree 19:38:53 <LordAro> "if E1 has a signed type and non-negative value, and E1 × 2E2 is representable in the result type, then that is the resulting value; otherwise, the behavior is undefined." 19:39:22 <LordAro> if it helps, this does seem to have changed between C89/C++03 & C99/C++11 19:42:48 <frosch123> c++98 says nothing about that 19:43:02 <frosch123> but c++ has always been more defined than plain c 19:43:41 <frosch123> c++98 5.8 [expr-shift] makes the restrictions about the rhs as said above 19:44:02 <frosch123> and then defines << in general, and >> for signed and unsigned separately 19:50:58 <frosch123> LordAro: i checked the plain c standard. there they distinguish platforms which do and do not support "negative zero" 19:51:10 <frosch123> and depending on that "<<" is undefined 19:51:17 <frosch123> so, it is a C issue, no C++ issue 19:55:49 <frosch123> funnily in the beginning of the c++ standard they explicitly mention that integer with ones-complement are also an option, but then never follow it up 19:56:18 <frosch123> but eh, i am not aware of any processor not doing twos-complement integers in the past 50 years 19:57:10 <LordAro> true enough 19:57:43 *** gelignite has quit IRC 19:58:16 *** Wormnest has quit IRC 19:58:26 <frosch123> https://en.wikipedia.org/wiki/UNIVAC_1100/2200_series <- oh, they still build them in 1996 19:58:33 <frosch123> so, definitely ttd era :) 19:58:35 <LordAro> haha 20:04:08 <frosch123> https://www.unisys.com/offerings/clearpath-forward/clearpath-forward-products/clearpath-forward-dorado-systems <- i can't find their shop 20:04:32 *** sla_ro|master has quit IRC 20:07:46 <frosch123> they promise a quite big single-thread performance. so, maybe it's an option for ottd 20:14:21 <frosch123> hmm, the single one ebay offer i can find has ordinary xeon cpus 20:16:23 *** wodencafe has quit IRC 20:18:27 *** wodencafe has joined #openttd 20:58:31 *** sim-al2 has joined #openttd 21:10:33 *** nielsm has quit IRC 21:11:47 *** frosch123 has quit IRC 21:26:11 *** Progman has quit IRC 21:32:43 *** Thedarkb has quit IRC 21:44:24 *** matt21347 has quit IRC 21:56:24 *** andythenorth has left #openttd 23:31:11 *** HerzogDeXtEr has quit IRC 23:38:18 *** triolus has joined #openttd 23:58:11 *** Lejving has joined #openttd