Changed a multiplier constant to a value which might be better optimized.

This commit is contained in:
Mark de Wever 2007-11-29 19:05:33 +00:00
parent 8fe4563efa
commit ab867172dc

View file

@ -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;
}
};