Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6938 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Feb 1, 2006, 2:50:34 PM (19 years ago)
Author:
patrick
Message:

network: handles groups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_game_manager.cc

    r6937 r6938  
    2929#include "world_entity.h"
    3030#include "playable.h"
     31#include "space_ships/space_ship.h"
    3132#include "player.h"
    3233#include "shared_network_data.h"
     
    550551      }
    551552    }
     553    ///HACK this is only for network multiplayer games.
     554    if( b->isA(CL_SPACE_SHIP))
     555    {
     556      SpaceShip* ss = dynamic_cast<SpaceShip*>(b);
     557      if( owner%2 == 0)
     558      {
     559
     560        ss->loadModel("models/ships/reap_#.obj");
     561        ss->toList(OM_GROUP_00);
     562      }
     563      else
     564      {
     565        ss->loadModel( "models/ships/fighter.obj" );
     566        ss->toList(OM_GROUP_01);
     567      }
     568    }
    552569
    553570    return b;
Note: See TracChangeset for help on using the changeset viewer.