From 0dfd1948fbbb2bc7e7174eb5373741afdf8487ee Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Jun 2001 18:20:24 +0000 Subject: [PATCH] --- source/friend/friend.cpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/source/friend/friend.cpp b/source/friend/friend.cpp index 565cd5be0..b718168f8 100644 --- a/source/friend/friend.cpp +++ b/source/friend/friend.cpp @@ -265,22 +265,6 @@ void CNpcFriend::think(int _frames) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -typedef struct -{ - int m_control,m_iconFrame; -} ICON_MAP; -static const ICON_MAP s_iconMap[]= -{ - { PAD_UP, FRM__BUTU }, - { PAD_DOWN, FRM__BUTD }, - { PAD_LEFT, FRM__BUTL }, - { PAD_RIGHT, FRM__BUTR }, - { PAD_CROSS, FRM__BUTX }, - { PAD_SQUARE, FRM__BUTS }, - { PAD_CIRCLE, FRM__BUTC }, - { PAD_TRIANGLE, FRM__BUTT }, -}; - void CNpcFriend::render() { CNpcThing::render(); @@ -297,28 +281,6 @@ void CNpcFriend::render() boundingBox.YMax = 0; setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) ); setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 ); - - if(m_hasSpokenToSbYet&&!CConversation::isActive()) - { - const ICON_MAP *map; - int control; - sFrameHdr *fh; - int size; - DVECTOR iconPos; - - map=s_iconMap; - control=CPadConfig::getButton(CPadConfig::PAD_CFG_UP); - while(map->m_control!=control) - { - map++; - } - fh=CGameScene::getSpriteBank()->getFrameHeader(map->m_iconFrame); - size=strobebase+((msin(m_iconStrobe)*strobescale)>>12); - iconPos=getRenderPos(); - iconPos.vx-=fh->W/2; - iconPos.vy-=getCollisionSize().vy+(fh->H*2); - CGameScene::getSpriteBank()->printFT4Scaled(fh,iconPos.vx,iconPos.vy,0,0,0,size); - } } }