@@ -82,8 +82,7 @@ local function iterate()
8282 " X: %.6f\n Y: %.6f\n Z: %.2f\n " ..
8383 " distX: %.6f\n distY: %.6f\n distZ: %.2f\n " ..
8484 " momX: %.6f\n momY: %.6f\n " ..
85- " distM: %.6f\n dirM: %.6f\n angle: %d\n " ..
86- " tic: %d\n time: %.2f" , -- xdre limits to centiseconds
85+ " distM: %.6f\n dirM: %.6f\n angle: %d\n " ,
8786 player .x ,
8887 player .y ,
8988 player .z ,
@@ -94,9 +93,7 @@ local function iterate()
9493 player .momy ,
9594 player .distmoved ,
9695 player .dirmoved ,
97- player .angle ,
98- Globals .gametic - 1 ,
99- Globals .leveltime / 35
96+ player .angle
10097 )
10198
10299 if Tracked [TrackedType .THING ].Current then
@@ -332,6 +329,20 @@ local function iterate()
332329 box ( 0 , 0 , PADDING_WIDTH , ScreenHeight , 0xb0000000 , 0xb0000000 )
333330 text (10 , 42 , texts .player , MapPrefs .player .color )
334331
332+ local rngindex = Globals .rng .rndindex
333+ text (
334+ PADDING_WIDTH ,
335+ ScreenHeight - 32 * ScreenHeight / 200 - 50 ,
336+ string.format (
337+ " tic: %d\n " ..
338+ " time: %.2f\n " .. -- xdre limits to centiseconds
339+ " rng: #%03d %d" ,
340+ Globals .gametic - 1 ,
341+ Globals .leveltime / 35 ,
342+ rngindex ,
343+ memory .readbyte (memory .read_u32_le (symbols .rndtable ) + rngindex , " System Bus" )
344+ ))
345+
335346 if texts .thing then text (10 , TextPosY .Thing , texts .thing ) end
336347 if texts .line then text (10 , TextPosY .Line , texts .line , 0xffff8800 ) end
337348 if texts .sector then text (10 , TextPosY .Sector , texts .sector , 0xff00ffff ) end
0 commit comments