From accb9f32a53859c5afc144e8588efda1e3bcc0a0 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 30 Jan 2001 15:02:01 +0000 Subject: [PATCH] --- source/enemy/npc.cpp | 2 +- source/player/player.cpp | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/source/enemy/npc.cpp b/source/enemy/npc.cpp index 0451c044f..69ba46362 100644 --- a/source/enemy/npc.cpp +++ b/source/enemy/npc.cpp @@ -1338,7 +1338,7 @@ void CNpc::processEvent( GAME_EVENT evt, CThing *sourceThing ) yDiffSqr = this->Pos.vy - sourcePos.vy; yDiffSqr *= yDiffSqr; - if ( xDiffSqr + yDiffSqr < 250 ) + if ( xDiffSqr + yDiffSqr < 10000 ) { if( !CConversation::isActive() ) { diff --git a/source/player/player.cpp b/source/player/player.cpp index 86ccc1be9..7261d368c 100644 --- a/source/player/player.cpp +++ b/source/player/player.cpp @@ -29,6 +29,10 @@ #include "game\gameslot.h" #endif +#ifndef __GAME_GAME_H__ +#include "game\game.h" +#endif + // to be removed #include "gfx\tpage.h" @@ -136,8 +140,6 @@ if(newmode!=-1) newmode=-1; } - - #ifndef __USER_paul__ int padInput=PadGetHeld(0); int move=7*_frames; @@ -146,6 +148,11 @@ if(newmode!=-1) if(padInput&PAD_LEFT) Pos.vx-=move; if(padInput&PAD_RIGHT) Pos.vx+=move; m_invincibleFrameCount=0; + + if ( padInput & PAD_UP ) // not sure where you want to put this, Paul (Charles) + { + GameScene.sendEvent( USER_REQUEST_TALK_EVENT, this ); + } #else if(_frames>=3)_frames=2;