From 019c7f00ddca3eec07d8b0b138eab9b3c4ac6de2 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 29 May 2001 14:05:15 +0000 Subject: [PATCH] --- source/player/pmchop.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/player/pmchop.cpp b/source/player/pmchop.cpp index dcd1564f5..57522a11a 100644 --- a/source/player/pmchop.cpp +++ b/source/player/pmchop.cpp @@ -63,7 +63,7 @@ void CPlayerModeChop::enter() Params: Returns: ---------------------------------------------------------------------- */ -int chopcsx=0; +int chopcsx=-25; int chopcsy=-30; int chopcsw=80; int chopcsh=60; @@ -84,13 +84,18 @@ void CPlayerModeChop::think() { m_chopFrame=0; getPlayerCollisionSize(&m_savedCSX,&m_savedCSY,&m_savedCSW,&m_savedCSH); - setPlayerCollisionSize(chopcsx,chopcsy,chopcsw,chopcsh); m_chopping=true; } // Chopping? if(m_chopping) { + int facing; + facing=getFacing(); + m_chopping=false; // Oops.. + setPlayerCollisionSize(chopcsx*facing,chopcsy,chopcsw,chopcsh); + m_chopping=true; // Oops.. + m_player->setAnimNo(ANIM_SPONGEBOB_KARATE); m_player->setAnimFrame(m_chopFrame); m_chopFrame++;