Changed a multiplier constant to a value which might be better optimized.
This commit is contained in:
parent
8fe4563efa
commit
ab867172dc
1 changed files with 1 additions and 1 deletions
|
@ -424,7 +424,7 @@ protected:
|
|||
//! (1000 are just to weight the y compare to x)
|
||||
struct ordered_draw : public std::binary_function<gamemap::location, gamemap::location, bool> {
|
||||
bool operator()(gamemap::location a, gamemap::location b) {
|
||||
return (a.y*2 + a.x%2) * 1000 + a.x < (b.y*2 + b.x%2) * 1000 + b.x;
|
||||
return (a.y*2 + a.x%2) * 1024 + a.x < (b.y*2 + b.x%2) * 1024 + b.x;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue