From ec6e6c0e953507d8ab2b4054f15cb907186f8a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Mon, 14 Aug 2023 20:01:39 +0200 Subject: [PATCH] oom --- demos/99-bt.c | 4 ++-- tools/cook.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/99-bt.c b/demos/99-bt.c index 186e3ad..2cb01cb 100644 --- a/demos/99-bt.c +++ b/demos/99-bt.c @@ -81,7 +81,7 @@ void draw_scene() { for( int y = oz; y < (oz+dd); ++y ) for( int x = ox; x < (ox+ww); ++x ) - chunk[ (x + W/2) + (y + Z/2) * W ] |= 1; + chunk[ (x + W/2) + min(y + Z/2, Z-1) * W ] |= 1; } ddraw_color(BLUE); @@ -260,4 +260,4 @@ void move_players() { ui_label2("Robot", ICON_MD_GAMEPAD " I,J,K,L keys"); ui_panel_end(); } -} +} \ No newline at end of file diff --git a/tools/cook.ini b/tools/cook.ini index 660afab..97a8e88 100644 --- a/tools/cook.ini +++ b/tools/cook.ini @@ -1,4 +1,4 @@ -; this is where you specify and configure the V4K pipeline. +; this is where you specify and configure the FWK pipeline. ; tweak the pipeline and add new importers just by editing this file. ; there is no flow control in this script file: lines are parsed and evaluated, from top to bottom.