Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2007, 6:17:06 PM (17 years ago)
Author:
nicolasc
Message:

collision fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/projectiles/hbolt.cc

    r10698 r10737  
    2020#include "state.h"
    2121#include "model.h"
     22
     23#include "world_entities/npcs/actionbox_enemy.h"
    2224#include "world_entities/npcs/npc.h"
    2325
     
    125127{
    126128  printf("Collision with HBolt\n");
    127   if (this->hitEntity != entity && entity->isA(NPC::staticClassID()) || entity == this->target)
     129  if (this->hitEntity != entity/* && entity->isA(NPC::staticClassID())*/ && entity->isA(ActionboxEnemy::staticClassID()) || entity == this->target)
    128130    this->destroy( entity );
    129131  this->hitEntity = entity;
     
    148150  this->angle += HBolt::rotationSpeed * dt;
    149151
    150   for( ObjectList<NPC>::const_iterator eIterator = NPC::objectList().begin(); eIterator !=NPC::objectList().end(); eIterator++)
     152  for( ObjectList<ActionboxEnemy>::const_iterator eIterator = ActionboxEnemy::objectList().begin(); eIterator !=ActionboxEnemy::objectList().end(); eIterator++)
    151153  {
    152154    if( ((*eIterator)->getOMListNumber() != (this->origList -1))  && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)
Note: See TracChangeset for help on using the changeset viewer.