Changeset 9396 in orxonox.OLD for branches/proxy/src/world_entities
- Timestamp:
- Jul 23, 2006, 10:07:23 PM (18 years ago)
- Location:
- branches/proxy/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/world_entities/bsp_entity.cc
r9059 r9396 1 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 4 4 Copyright (C) 2004 orx 5 5 6 6 This program is free software; you can redistribute it and/or modify 7 7 it under the terms of the GNU General Public License as published by 8 8 the Free Software Foundation; either version 2, or (at your option) 9 9 any later version. 10 10 11 11 ### File Specific: 12 12 main-programmer: Claudio Botta … … 53 53 54 54 this->bspManager = NULL; 55 55 56 56 this->name_handle = registerVarId( new SynchronizeableString( &this->name, &this->name_write, "name" ) ); 57 57 58 58 this->setSynchronized( true ); 59 59 } … … 63 63 { 64 64 PRINTF(0)("+++++++++++ LOADING NAME %s\n", name.c_str()); 65 65 66 66 this->name = name; 67 67 -
branches/proxy/src/world_entities/creatures/fps_player.cc
r9377 r9396 287 287 //dealing damage 288 288 289 if ( State::isOnline() && SharedNetworkData::getInstance()->isMasterServer())289 if ( State::isOnline() && (SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer())) 290 290 { 291 291 this->damageTicker -= time; -
branches/proxy/src/world_entities/space_ships/space_ship.cc
r9371 r9396 314 314 if( entity->isA(CL_PROJECTILE) && entity != ref) 315 315 { 316 if ( SharedNetworkData::getInstance()->isMasterServer() )316 if ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer()) 317 317 { 318 318 //TODO handle this -
branches/proxy/src/world_entities/spawning_point.cc
r9386 r9396 178 178 } 179 179 180 if ( found && SharedNetworkData::getInstance()->isMasterServer() )180 if ( found && SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer()) 181 181 this->sendRespawnMessage( it->entity->getUniqueID() ); 182 182 … … 218 218 bool SpawningPoint::respawnMessageHandler( MessageId messageId, byte * data, int dataLength, void * someData, int userId ) 219 219 { 220 if ( SharedNetworkData::getInstance()->isMasterServer() )220 if ( SharedNetworkData::getInstance()->isMasterServer() || SharedNetworkData::getInstance()->isProxyServer()) 221 221 { 222 222 PRINTF(2)("server received spawn message!\n");
Note: See TracChangeset
for help on using the changeset viewer.