fixed shroud/fog/grid images
Before Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 181 B |
Before Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 418 B |
Before Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 530 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 356 B |
Before Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 449 B |
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 501 B |
|
@ -41,6 +41,7 @@
|
|||
std::map<gamemap::location,double> display::debugHighlights_;
|
||||
|
||||
namespace {
|
||||
const int MinZoom = 36;
|
||||
const int DefaultZoom = 72;
|
||||
const int MaxZoom = 200;
|
||||
|
||||
|
@ -290,7 +291,7 @@ double display::zoom(int amount)
|
|||
const int orig_zoom = zoom_;
|
||||
|
||||
zoom_ += amount;
|
||||
if(zoom_ > MaxZoom) {
|
||||
if(zoom_ < MinZoom || zoom_ > MaxZoom) {
|
||||
zoom_ = orig_zoom;
|
||||
xpos_ = orig_xpos;
|
||||
ypos_ = orig_ypos;
|
||||
|
|