Changeset 4637 in orxonox.OLD for orxonox/trunk/src/util
- Timestamp:
- Jun 16, 2005, 1:31:24 AM (20 years ago)
- Location:
- orxonox/trunk/src/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/loading/load_param.cc
r4625 r4637 33 33 { 34 34 this->setClassID(CL_LOAD_PARAM, "LoadParam"); 35 35 36 this->loadString = NULL; 36 37 this->pointerToParam = pointerToParam; … … 216 217 if (this->paramCount > 0) 217 218 { 218 219 PRINT(3)(" (Default: "); 219 220 for (int i = 0; i < this->paramCount; i++) 220 221 { -
orxonox/trunk/src/util/resource_manager.cc
r4606 r4637 181 181 ResourceType tmpType; 182 182 #ifndef NO_MODEL 183 #define __IF_OK 183 184 if (!strncmp(fileName+(strlen(fileName)-4), ".obj", 4)) 184 185 tmpType = OBJ; … … 193 194 #endif /* NO_MODEL */ 194 195 #ifndef NO_AUDIO 195 else if (!strncmp(fileName+(strlen(fileName)-4), ".wav", 4)) 196 #ifdef __IF_OK 197 else 198 #endif 199 #define __IF_OK 200 if (!strncmp(fileName+(strlen(fileName)-4), ".wav", 4)) 196 201 tmpType = WAV; 197 202 else if (!strncmp(fileName+(strlen(fileName)-4), ".mp3", 4)) … … 201 206 #endif /* NO_AUDIO */ 202 207 #ifndef NO_TEXT 203 else if (!strncmp(fileName+(strlen(fileName)-4), ".ttf", 4)) 208 #ifdef __IF_OK 209 else 210 #endif 211 #define __IF_OK 212 if (!strncmp(fileName+(strlen(fileName)-4), ".ttf", 4)) 204 213 tmpType = TTF; 205 214 #endif /* NO_TEXT */ 206 215 #ifndef NO_TEXTURES 207 else 208 tmpType = IMAGE; 216 #ifdef __IF_OK 217 else 218 #else 219 if 220 #endif 221 tmpType = IMAGE; 209 222 #endif /* NO_TEXTURES */ 210 223 … … 793 806 switch (enumRes->type) 794 807 { 795 case OBJ: 808 #ifndef NO_MODEL 809 case OBJ: 796 810 PRINT(0)("ObjectModel\n"); 797 811 break; … … 799 813 PRINT(0)("PrimitiveModel\n"); 800 814 break; 815 #endif 816 #ifndef NO_TEXTURES 801 817 case IMAGE: 802 818 PRINT(0)("ImageFile (Texture)\n"); 803 819 break; 820 #endif 804 821 default: 805 822 PRINT(0)("SoundFile\n"); -
orxonox/trunk/src/util/resource_manager.h
r4606 r4637 73 73 74 74 // more specific 75 float modelSize; //!< the size of the model (OBJ/PRIM) 75 76 #ifndef NO_MODEL 76 float modelSize; //!< the size of the model (OBJ/PRIM)77 77 char* skinFileName; //!< skinFileName (MD2) 78 78 #endif /* NO_MODEL */
Note: See TracChangeset
for help on using the changeset viewer.