diff -ur pinguscaprec/src/CaptureRectangle.cc pingusfix/src/CaptureRectangle.cc --- pinguscaprec/src/CaptureRectangle.cc Tue May 18 21:53:18 1999 +++ pingusfix/src/CaptureRectangle.cc Tue May 18 21:36:12 1999 @@ -32,18 +32,12 @@ { } -CaptureRectangle::CaptureRectangle(Range x, Range y) -{ -x_offset = x; -y_offset = y; -} - CaptureRectangle::~CaptureRectangle() { } void -CaptureRectangle::draw() +CaptureRectangle::draw_offset(Range x_offset, Range y_offset) { if (buttons->get_action()->get_environment() & current_pingu->get_environment()) good->put_screen(current_pingu->get_x()-17+x_offset, current_pingu->get_y()-33+y_offset); diff -ur pinguscaprec/src/CaptureRectangle.hh pingusfix/src/CaptureRectangle.hh --- pinguscaprec/src/CaptureRectangle.hh Tue May 18 21:53:18 1999 +++ pingusfix/src/CaptureRectangle.hh Tue May 18 21:36:35 1999 @@ -27,7 +27,6 @@ class CaptureRectangle: public GameObj { private: - Range x_offset, y_offset; Pingu* current_pingu; static CL_Surface* good; static CL_Surface* bad; @@ -41,7 +40,7 @@ static void load_data(); void set_pingu(Pingu* pingu); void set_buttons(ButtonPanel* b); - void draw(); + void draw_offset(Range x_offset, Range y_offset); }; #endif diff -ur pinguscaprec/src/pingu.cc pingusfix/src/pingu.cc --- pinguscaprec/src/pingu.cc Tue May 18 21:53:18 1999 +++ pingusfix/src/pingu.cc Tue May 18 21:49:14 1999 @@ -143,7 +143,7 @@ bool Pingu::is_over(int x, int y) { - if (data.status == dead || data.status == not_catchable) + if (data.status == (dead || exited) || data.status == not_catchable) return false; if (data.x_pos - 16 < x && data.x_pos + 16 > x && diff -ur pinguscaprec/src/pingu_action.cc pingusfix/src/pingu_action.cc --- pinguscaprec/src/pingu_action.cc Sun May 16 18:39:32 1999 +++ pingusfix/src/pingu_action.cc Tue May 18 21:49:48 1999 @@ -75,7 +75,7 @@ void PinguAction::draw_offset(int x, int y) { - if (data->status == dead) + if (data->status == (dead || exited)) return; assert(surface); diff -ur pinguscaprec/src/playfield.cc pingusfix/src/playfield.cc --- pinguscaprec/src/playfield.cc Tue May 18 21:53:18 1999 +++ pingusfix/src/playfield.cc Tue May 18 21:36:56 1999 @@ -57,7 +57,7 @@ x_offset2 = x_offset; y_offset2 = y_offset; - cap = new CaptureRectangle(x_offset, y_offset); + cap = new CaptureRectangle(); } Playfield::~Playfield() @@ -69,7 +69,8 @@ void Playfield::draw() -{ +{ + if (split_screen) { // draw the world (Playfield, pingus, ...) CL_Display::push_clip_rect(); @@ -89,7 +90,7 @@ if (current_pingu >-1 ) { cap->set_pingu((*pingu)[current_pingu] ); - cap->draw(); + cap->draw_offset(x_offset,y_offset); } if (pause) {