Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 1, 2006, 2:32:16 PM (20 years ago)
Author:
patrick
Message:

network: implemented network cd system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/playable.cc

    r6868 r6937  
    101101void Playable::collidesWith(WorldEntity* entity, const Vector& location)
    102102{
    103   if (entity->isA(CL_PROJECTILE))
     103  if (entity->isA(CL_PROJECTILE) && !State::isOnline() )
    104104    this->decreaseHealth(entity->getHealth());
    105105
     
    253253{
    254254  SYNCHELP_READ_BEGIN();
    255  
     255
    256256  byte flags;
    257  
     257
    258258  SYNCHELP_READ_BYTE( flags, NWT_PL_FLAGS );
    259  
     259
    260260  bFire = (flags & FLAGS_bFire) != 0;
    261  
     261
    262262  return SYNCHELP_READ_N;
    263263}
     
    267267  SYNCHELP_WRITE_BEGIN();
    268268  byte flags = 0;
    269  
     269
    270270  if ( bFire )
    271271    flags |= FLAGS_bFire;
    272  
     272
    273273
    274274  SYNCHELP_WRITE_BYTE( flags, NWT_PL_FLAGS );
    275275  oldFlags = flags;
    276276
    277  
     277
    278278  return SYNCHELP_WRITE_N;
    279279}
     
    282282{
    283283  byte flags = 0;
    284  
     284
    285285  if ( bFire )
    286286    flags |= FLAGS_bFire;
    287  
     287
    288288  return flags!=oldFlags;
    289289}
Note: See TracChangeset for help on using the changeset viewer.