Changeset 398 for trunk/src/rogue


Ignore:
Timestamp:
06/13/15 11:20:22 (10 years ago)
Author:
epyon
Message:
  • cleanup of glm usage
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/rogue/fov_recursive_shadowcasting.cc

    r395 r398  
    2424        {
    2525                position max_radius = m_size-m_position;
    26                 max_radius.x=glm::max(max_radius.x,m_position.x);
    27                 max_radius.y=glm::max(max_radius.y,m_position.y);
    28                 m_radius = (int)glm::length((glm::vec2)max_radius)+1;
     26                max_radius = glm::max(max_radius,m_position);
     27                m_radius = (int)glm::length((vec2)max_radius)+1;
    2928        }
    3029        m_radius2 = m_radius * m_radius;
Note: See TracChangeset for help on using the changeset viewer.