mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
- removing output parameter in XyToZone - copy to move optimization while inserting to map - for each type loops
18 lines
274 B
C++
18 lines
274 B
C++
/** @file
|
|
*
|
|
* @par History
|
|
*/
|
|
|
|
|
|
#include "zone.h"
|
|
|
|
namespace Pol
|
|
{
|
|
namespace Core
|
|
{
|
|
std::pair<unsigned, unsigned> XyToZone( xcoord x, ycoord y )
|
|
{
|
|
return std::make_pair<unsigned, unsigned>( x >> ZONE_SHIFT, y >> ZONE_SHIFT );
|
|
}
|
|
} // namespace Core
|
|
} // namespace Pol
|