Changeset 10176 in orxonox.OLD for branches/mount_points
- Timestamp:
- Jan 3, 2007, 6:10:19 PM (18 years ago)
- Location:
- branches/mount_points/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/bsp/bsp_manager.cc
r10174 r10176 309 309 { 310 310 hasSwapped = false; 311 311 312 for( int i = 0; i < size - 1; i++) 312 313 { … … 326 327 327 328 // swap if necessary 328 if( v1 <v2)329 if( v1 > v2) 329 330 { 330 331 // swap elements 331 332 int tmp = this->trasparent[i+1]; 332 333 this->trasparent[i+1] = this->trasparent[i]; 333 this->trasparent[i +1] = tmp;334 this->trasparent[i] = tmp; 334 335 335 336 hasSwapped = true; -
branches/mount_points/src/lib/math/vector.h
r10174 r10176 47 47 /** @param v: the Vecor to compare with this one @returns true, if the Vecors are different, false otherwise */ 48 48 inline bool operator!= (const Vector& v) const { return (this->x!=v.x||this->y!=v.y||this->z!=v.z)?true:false; }; 49 inline bool operator> (const Vector& v) { return (this->len() > v.len()); }50 inline bool operator< (const Vector& v) { return (this->len() < v.len()); }49 inline bool operator> (const Vector& v) const { return (this->len() > v.len()); } 50 inline bool operator< (const Vector& v) const { return (this->len() < v.len()); } 51 51 52 52 /** @param index The index of the "array" @returns the x/y/z coordinate */
Note: See TracChangeset
for help on using the changeset viewer.