This commit is contained in:
Charles 2001-06-04 12:54:44 +00:00
parent 30272803d0
commit 25de06c1a6
21 changed files with 595 additions and 41 deletions

View file

@ -54,11 +54,20 @@
---------------------------------------------------------------------- */
void CTeleportTrigger::collidedWith(CThing *_thisThing)
{
ASSERT(_thisThing->getThingType()==TYPE_PLAYER);
((CPlayer*)_thisThing)->teleportTo(m_boxX1+8,m_boxY1+16);
switch( _thisThing->getThingType() )
{
case TYPE_PLAYER:
{
((CPlayer*)_thisThing)->teleportTo(m_boxX1+8,m_boxY1+16);
PAUL_DBGMSG("HIT TELEPORT TRIGGER");
break;
}
default:
break;
}
}
/*===========================================================================