Times are UTC Toggle Colours
14:00:42 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588#pullrequestreview-1786955798 14:04:10 <peter1138> Oh, so with original TTD, the news window doesn't avoid the status bar at all, it just sits over it. 14:06:53 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588#pullrequestreview-1786967505 14:07:08 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler closed pull request #11588: Change: Split ScriptDate:: into Calendar and Economy variants https://github.com/OpenTTD/OpenTTD/pull/11588 14:20:13 *** nielsm has joined #openttd 14:33:57 <xarick> omg, there are already rumours of a 256 core / 512 thread amd cpu 14:34:43 <xarick> LGA-6096... insanity 14:39:02 <LordAro> i think they're already using SP5 with the latest epyc processors 14:39:08 <LordAro> many many pins 14:50:49 <peter1138> Is it 6,096 pins? :D 14:51:03 <peter1138> Just like Socket 4 was 4 pins. 14:52:21 <LordAro> funnily enough, yes 14:55:25 <peter1138> https://www.techpowerup.com/img/FbvxAaOvqEbzqdgU.jpg :o 15:34:33 *** Hanicef has quit IRC 15:45:19 <xarick> I'm bad at maths 15:45:47 <xarick> need to calculate a rectangle area - another rectangle area inside the first one 15:46:09 <xarick> get a count of the number of tiles that remain 15:47:49 *** esselfe_ has quit IRC 15:49:03 <lamarr> is that not just the larger area minus the smaller one? 15:49:58 <peter1138> Assuming the smaller rectangle is fully inside the larger one, yeah. 15:50:41 <xarick> yes, but in a GetTileX/Y context, I'm getting lost 15:51:38 <LordAro> get a piece of paper, draw a diagram 16:01:15 <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1186337393582809240/Puntburg_Springs_Transport_2053-07-23.png?ex=6592e1cb&is=65806ccb&hm=ca9e0cba0d32fd8656bf1ca09dad6624a5a6115de73598834a084f122433a850& 16:01:35 <lamarr> in like pseudocode you'd do something like this, where the two corners are the two diagonally opposing ones 16:02:03 <lamarr> repeat likewise for the inner one, and subtract it from the outer one 16:07:41 *** wallabra has quit IRC 16:08:11 *** Wormnest has joined #openttd 16:09:31 <xarick> `_map_size = (GetTileX(_tile_S_outer) - GetTileX(_tile_N_outer) + 1) * (GetTileY(_tile_S_outer) - GetTileY(_tile_N_outer) + 1) - (GetTileX(_tile_S_inner - 1) - GetTileX(_tile_N_inner + 1) + 1) * (GetTileY(_tile_S_inner - 1) - GetTileY(_tile_N_inner + 1) + 1);` I think I'm doing it correctly... why does it fail 😦 16:11:17 <lamarr> make sure you're taking the absolute values of the lengths and heights (| |) 16:11:41 <xarick> ok, let me try abs 16:13:32 <locosage> xarick: you do +-1 to TileIndex, not x/y 16:14:19 <lamarr> would some of those +/- 1 not cancel out as well? the inner ones minus and add one then add one which could just be add one 16:15:39 <lamarr> wait nvm it would shift it over I think 16:17:15 *** Hanicef has joined #openttd 16:19:35 <xarick> ok, I see my mistake 16:19:53 <peter1138> They would cancel out if you only cared about length, but it matters with area. 16:19:54 *** wwww has joined #openttd 16:20:43 <peter1138> Who know that calculating the area of a rectangle was so hard :D 16:21:06 <peter1138> Step 1: calculate outer area 16:21:11 <peter1138> Step 2: calculate inner area 16:21:17 <peter1138> Step 3: subtract inner area from outer area. 16:21:32 <peter1138> Or, shove it all onto one line and get it horribly wrong.