IRC logs for #opendune on OFTC at 2011-02-06
⏴ go to previous day
05:34:28 *** Xaroth__ has joined #openDune
12:39:12 *** fjb is now known as Guest454
13:55:19 *** Alberth has joined #openDune
13:56:30 <Alberth> after a long time, I decided to update my opendune program, and play a little.
13:56:53 <Alberth> unfortunately, I did not get very far :)
13:57:14 <Alberth> when I add a second power plant to get enough power, the game freezes
13:57:39 <glx> hmm freezes are a known unsolvable problem
13:58:06 <glx> unless it happens every time you do it
13:59:30 <Alberth> a savegame is sufficient?
14:16:11 <Alberth> that should happen indeed
14:16:54 <Alberth> does it run at 64 bit?
14:17:55 <Alberth> I visit here, and you move to openttd.tgp :)
14:18:37 <Alberth> at least 50% of the developers have the same problem :)
14:18:53 <TrueBrain> darn, no gdb installed
14:19:15 <TrueBrain> so most likely one of those shady pieces of code :p
14:19:50 <glx> hmm I should try gcc first
14:19:51 <Alberth> glx: I built from trunk r1290, so unlikely
14:20:25 <glx> I mean debug vs release ;)
14:21:37 <TrueBrain> House_UpdateRadarState
14:22:26 <TrueBrain> I guess the while (emu_ax != 0) ?
14:22:44 <TrueBrain> glx: remember I was asking about those whiles?
14:22:50 <TrueBrain> and if you could put a sleep in them? :p
14:22:51 <glx> while (g_global->variable_76B4 != 0);
14:22:58 <TrueBrain> thought you did that?
14:23:34 <glx> I did but not everywhere I think
14:25:22 <DorpsGek> SVN: truebrain (r1291) -Fix (r1267): don't do infinite loops; machines tend not to like it ;) (tnx to Alberth for the savegame)
14:25:29 <TrueBrain> there you go, this should fix it Alberth :)
14:25:43 <Alberth> thanks for the quick fix
14:26:03 <TrueBrain> tnx for a very easy-to-reproduce instructions :D
14:26:24 <Alberth> now, I undoubtly will get slaughtered in a few minutes due to insufficient defenses in my game :P
14:26:29 <TrueBrain> glx: a quick grep doesn't show any other cases, maybe you can confirm that? :)
14:28:24 <glx> but sleep.h must be before math.h ;)
14:28:40 <glx> else I get redefinitions for min and max
14:29:29 <TrueBrain> fair enough .. I won't promise I remember it, but you can fix it every time :D
14:30:12 <glx> or I can use an ugly way (undef them in sleep.h)
14:30:32 <planetmaker> what about #ifdef ... ?
14:30:57 <planetmaker> should be easy enough then
14:31:00 <glx> I can't modify windows headers
14:31:11 <planetmaker> oh, a windows header :S
14:31:15 <TrueBrain> you can, but not globally :p
14:37:19 <DorpsGek> SVN: glx (r1292) -Fix (r1291): MSVC wants sleep.h to be included before math.h
14:38:01 <Alberth> could you fix the radar click? if you click near the top, the display jumps to the bottom
14:39:50 <glx> now to find where it's handled
14:40:47 <Alberth> They destroyed my construction yard :(
14:47:59 <glx> something doesn't look right ;)
14:50:02 <glx> uint16 -> int16 solves that
14:50:56 <glx> it's in Map_SetViewportPosition()
14:53:57 <DorpsGek> SVN: glx (r1293) -Fix (r1242): signed/unsigned side effect
19:51:10 *** TrueBrain is now known as TB2
20:18:26 *** TB2 is now known as TrueBrain
continue to next day ⏵