mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-18 15:11:51 +00:00
4x bigger max. zoom in 2d mode at Gambini's request
git-svn-id: https://svn.eduke32.com/eduke32@1491 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a9c8d071a6
commit
4e4e2f16d8
3 changed files with 5 additions and 5 deletions
|
@ -111,7 +111,7 @@ extern int16_t searchsector, searchwall, searchstat; //search output
|
|||
int32_t osearchx, osearchy; //old search input
|
||||
|
||||
extern int16_t pointhighlight, linehighlight, highlightcnt;
|
||||
int16_t grid = 3, gridlock = 1, showtags = 1;
|
||||
int32_t grid = 3, gridlock = 1, showtags = 1;
|
||||
int32_t zoom = 768, gettilezoom = 1;
|
||||
int32_t lastpm16time = 0;
|
||||
|
||||
|
@ -2833,7 +2833,7 @@ SKIP:
|
|||
bstatus &= ~16;
|
||||
}
|
||||
|
||||
if ((keystatus[buildkeys[BK_MOVEUP]] || (bstatus&16)) && (zoom < 16384))
|
||||
if ((keystatus[buildkeys[BK_MOVEUP]] || (bstatus&16)) && (zoom < 65536))
|
||||
{
|
||||
zoom += synctics*(zoom>>4);
|
||||
if (zoom < 24) zoom += 2;
|
||||
|
@ -2844,7 +2844,7 @@ SKIP:
|
|||
pos.x = mousxplc;
|
||||
pos.y = mousyplc;
|
||||
}
|
||||
if (zoom > 16384) zoom = 16384;
|
||||
if (zoom > 65536) zoom = 65536;
|
||||
_printmessage16("Zoom: %d",zoom);
|
||||
}
|
||||
if ((keystatus[buildkeys[BK_MOVEDOWN]] || (bstatus&32)) && (zoom > 8))
|
||||
|
|
|
@ -8068,7 +8068,7 @@ static void Keys2d(void)
|
|||
if (autogrid)
|
||||
{
|
||||
grid = zoom+512;
|
||||
if (grid > 16384) grid = 16384;
|
||||
if (grid > 65536) grid = 65536;
|
||||
grid = scale(grid,6,6144);
|
||||
if (grid > 7) grid = 7;
|
||||
if (grid < 0) grid = 0;
|
||||
|
|
|
@ -106,7 +106,7 @@ static inline void SetSLIMEPalette();
|
|||
static inline void SetWATERPalette();
|
||||
static inline void SetGAMEPalette();
|
||||
|
||||
extern int16_t grid;
|
||||
extern int32_t grid;
|
||||
|
||||
static void EditSpriteData(int16_t spritenum);
|
||||
static void EditWallData(int16_t wallnum);
|
||||
|
|
Loading…
Reference in a new issue