Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10176 in orxonox.OLD


Ignore:
Timestamp:
Jan 3, 2007, 6:10:19 PM (17 years ago)
Author:
patrick
Message:

transparency is handled correclty in bsp

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  
    309309  {
    310310    hasSwapped = false;
     311
    311312    for( int i = 0; i < size - 1; i++)
    312313    {
     
    326327
    327328      // swap if necessary
    328       if( v1 < v2)
     329      if( v1 > v2)
    329330      {
    330331        // swap elements
    331332        int tmp = this->trasparent[i+1];
    332333        this->trasparent[i+1] = this->trasparent[i];
    333         this->trasparent[i+1] = tmp;
     334        this->trasparent[i] = tmp;
    334335
    335336        hasSwapped = true;
  • branches/mount_points/src/lib/math/vector.h

    r10174 r10176  
    4747  /** @param v: the Vecor to compare with this one @returns true, if the Vecors are different, false otherwise */
    4848  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()); }
    5151
    5252  /** @param index The index of the "array" @returns the x/y/z coordinate */
Note: See TracChangeset for help on using the changeset viewer.