Changeset 7f884ea in network-game for server/server.cpp
- Timestamp:
- Jan 24, 2014, 12:27:15 AM (11 years ago)
- Branches:
- master
- Children:
- f66d04f
- Parents:
- e70b66b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
re70b66b r7f884ea 141 141 { 142 142 case 0:// blue team 143 spawnPos = p->currentGame->getMap()->getStructureLocation( WorldMap::STRUCTURE_BLUE_FLAG);143 spawnPos = p->currentGame->getMap()->getStructureLocation(STRUCTURE_BLUE_FLAG); 144 144 break; 145 145 case 1:// red team 146 spawnPos = p->currentGame->getMap()->getStructureLocation( WorldMap::STRUCTURE_RED_FLAG);146 spawnPos = p->currentGame->getMap()->getStructureLocation(STRUCTURE_RED_FLAG); 147 147 break; 148 148 default: … … 529 529 Player* p = mapPlayers[id]; 530 530 531 WorldMap::ObjectType flagType = WorldMap::OBJECT_NONE;531 ObjectType flagType = OBJECT_NONE; 532 532 if (p->hasBlueFlag) 533 flagType = WorldMap::OBJECT_BLUE_FLAG;533 flagType = OBJECT_BLUE_FLAG; 534 534 else if (p->hasRedFlag) 535 flagType = WorldMap::OBJECT_RED_FLAG;535 flagType = OBJECT_RED_FLAG; 536 536 537 537 map<unsigned int, Player*> players = p->currentGame->getPlayers(); … … 644 644 645 645 if (!p->isDead) { 646 WorldMap::ObjectType flagType = WorldMap::OBJECT_NONE;646 ObjectType flagType = OBJECT_NONE; 647 647 if (p->hasBlueFlag) 648 flagType = WorldMap::OBJECT_BLUE_FLAG;648 flagType = OBJECT_BLUE_FLAG; 649 649 else if (p->hasRedFlag) 650 flagType = WorldMap::OBJECT_RED_FLAG;651 652 if (flagType != WorldMap::OBJECT_NONE)650 flagType = OBJECT_RED_FLAG; 651 652 if (flagType != OBJECT_NONE) 653 653 g->addObjectToMap(flagType, p->pos.x, p->pos.y); 654 654 }
Note:
See TracChangeset
for help on using the changeset viewer.