Changeset 3879 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Apr 18, 2005, 6:14:27 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapon.cc
r3878 r3879 40 40 41 41 for(int i = 0; i < W_MAX_CONFIGS; ++i) 42 for(int j = 0; j < W_MAX_SLOTS; ++j) 43 this->configs[i].slots[j] = NULL; 42 { 43 this->configs[i].bUsed = false; 44 for(int j = 0; j < W_MAX_SLOTS; ++j) 45 this->configs[i].slots[j] = NULL; 46 } 44 47 45 48 this->currConfID = W_CONFIG0; … … 101 104 void WeaponManager::nextWeaponConf() 102 105 { 103 PRINTF( 3)("Changing weapon configuration: from %i\n", this->currConfID);106 PRINTF(4)("Changing weapon configuration: from %i\n", this->currConfID); 104 107 int i; 105 108 for(i = this->currConfID + 1; i < W_MAX_CONFIGS && !this->configs[i].bUsed; ++i); 106 109 if( i == W_MAX_CONFIGS) this->currConfID = W_CONFIG0; 107 110 else this->currConfID = i; 108 PRINTF( 3)("\tto %i\n", this->currConfID);111 PRINTF(4)("\tto %i\n", this->currConfID); 109 112 } 110 113
Note: See TracChangeset
for help on using the changeset viewer.