This commit is contained in:
Paul 2001-05-29 14:05:15 +00:00
parent cf4e986a75
commit 019c7f00dd

View File

@ -63,7 +63,7 @@ void CPlayerModeChop::enter()
Params: Params:
Returns: Returns:
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
int chopcsx=0; int chopcsx=-25;
int chopcsy=-30; int chopcsy=-30;
int chopcsw=80; int chopcsw=80;
int chopcsh=60; int chopcsh=60;
@ -84,13 +84,18 @@ void CPlayerModeChop::think()
{ {
m_chopFrame=0; m_chopFrame=0;
getPlayerCollisionSize(&m_savedCSX,&m_savedCSY,&m_savedCSW,&m_savedCSH); getPlayerCollisionSize(&m_savedCSX,&m_savedCSY,&m_savedCSW,&m_savedCSH);
setPlayerCollisionSize(chopcsx,chopcsy,chopcsw,chopcsh);
m_chopping=true; m_chopping=true;
} }
// Chopping? // Chopping?
if(m_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->setAnimNo(ANIM_SPONGEBOB_KARATE);
m_player->setAnimFrame(m_chopFrame); m_player->setAnimFrame(m_chopFrame);
m_chopFrame++; m_chopFrame++;