This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10045 for ps


Ignore:
Timestamp:
08/21/11 02:09:28 (13 years ago)
Author:
ben
Message:

Fixes typecast performance warning in MSVC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/simulation2/components/CCmpTerritoryManager.cpp

    r10034 r10045  
    622622
    623623                boundaries.push_back(TerritoryBoundary());
    624                 boundaries.back().connected = (owner & TERRITORY_CONNECTED_MASK);
     624                boundaries.back().connected = (owner & TERRITORY_CONNECTED_MASK) != 0;
    625625                boundaries.back().owner = (owner & TERRITORY_PLAYER_MASK);
    626626                std::vector<CVector2D>& points = boundaries.back().points;
     
    844844
    845845    NearestTile(x, z, i, j, m_Territories->m_W, m_Territories->m_H);
    846     return m_Territories->get(i, j) & TERRITORY_CONNECTED_MASK;
     846    return (m_Territories->get(i, j) & TERRITORY_CONNECTED_MASK) != 0;
    847847}
    848848
Note: See TracChangeset for help on using the changeset viewer.