From f17e55e76e3c8611e7d652135d8e09886f568d0c Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 25 May 2004 10:13:07 +0000 Subject: [PATCH] attempt to tune badguy activation SVN-Revision: 1324 --- src/badguy.cpp | 8 ++++---- src/defines.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/badguy.cpp b/src/badguy.cpp index 4f8175ed9..67389d526 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -841,10 +841,10 @@ BadGuy::action(float elapsed_time) start_position.y < scroll_y + screen->h + Y_OFFSCREEN_DISTANCE) activate(LEFT); } else { - if(base.x + base.width < scroll_x - X_OFFSCREEN_DISTANCE - || base.x > scroll_x + screen->w + X_OFFSCREEN_DISTANCE - || base.y + base.height < scroll_y - Y_OFFSCREEN_DISTANCE - || base.y > scroll_y + screen->h + Y_OFFSCREEN_DISTANCE) { + if(base.x + base.width < scroll_x - X_OFFSCREEN_DISTANCE*4 + || base.x > scroll_x + screen->w + X_OFFSCREEN_DISTANCE*4 + || base.y + base.height < scroll_y - Y_OFFSCREEN_DISTANCE*4 + || base.y > scroll_y + screen->h + Y_OFFSCREEN_DISTANCE*4) { seen = false; if(dying != DYING_NOT) remove_me(); diff --git a/src/defines.h b/src/defines.h index dd5b1a8b3..6b7216691 100644 --- a/src/defines.h +++ b/src/defines.h @@ -92,8 +92,8 @@ enum DyingType { /* Size constraints: */ -#define X_OFFSCREEN_DISTANCE screen->w*2 -#define Y_OFFSCREEN_DISTANCE screen->h*2 +#define X_OFFSCREEN_DISTANCE screen->w/2 +#define Y_OFFSCREEN_DISTANCE screen->h/2 #define LEVEL_WIDTH 375 -- 2.11.0