Some clean up of grid system.

This commit is contained in:
megamage
2011-12-07 13:02:44 -05:00
parent f5b3553bb3
commit 6a648c01a4
4 changed files with 19 additions and 40 deletions
+5
View File
@@ -135,6 +135,11 @@ struct CoordPair
return *this;
}
uint32 GetId() const
{
return y_coord * LIMIT + x_coord;
}
uint32 x_coord;
uint32 y_coord;
};