Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7121 in orxonox.OLD for trunk


Ignore:
Timestamp:
Feb 8, 2006, 10:36:14 AM (19 years ago)
Author:
rennerc
Message:

fix: only gameserver checks for collision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/playable.cc

    r7119 r7121  
    3333#include "sprite_particles.h"
    3434
     35#include "shared_network_data.h"
     36
    3537#include "effects/explosion.h"
    3638
     
    124126  collider = entity;
    125127
    126   if (entity->isA(CL_PROJECTILE))
     128  if ( entity->isA(CL_PROJECTILE) && ( !State::isOnline() || SharedNetworkData::getInstance()->isGameServer() ) )
    127129  {
    128130    this->decreaseHealth(entity->getHealth() *(float)rand()/(float)RAND_MAX);
Note: See TracChangeset for help on using the changeset viewer.