- Timestamp:
- Nov 8, 2014, 1:38:54 AM (10 years ago)
- Branches:
- master
- Children:
- 347d768
- Parents:
- 306758e
- Location:
- common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
common/Game.cpp
r306758e r7fa452f 184 184 switch (it->type) { 185 185 case OBJECT_BLUE_FLAG: 186 if (p->team == 1) {186 if (p->team == 2) { 187 187 p->hasBlueFlag = true; 188 188 itemId = it->id; … … 190 190 break; 191 191 case OBJECT_RED_FLAG: 192 if (p->team == 0) {192 if (p->team == 1) { 193 193 p->hasRedFlag = true; 194 194 itemId = it->id; -
common/Player.cpp
r306758e r7fa452f 30 30 this->range = 0; 31 31 this->attackCooldown = 0; 32 this->team = 0; // blueteam by default32 this->team = 0; // no team by default 33 33 this->hasBlueFlag = false; 34 34 this->hasRedFlag = false; … … 104 104 this->range = 0; 105 105 this->attackCooldown = 0; 106 this->team = 0; // blueteam by default106 this->team = 0; // no team by default 107 107 this->hasBlueFlag = false; 108 108 this->hasRedFlag = false; -
common/Player.h
r306758e r7fa452f 84 84 int range; 85 85 unsigned long long attackCooldown; 86 int team; // 0 is blue, 1is red86 int team; // 0 is none, 1 is blue, 2 is red 87 87 bool hasBlueFlag; 88 88 bool hasRedFlag;
Note:
See TracChangeset
for help on using the changeset viewer.