Skip to content

Commit

Permalink
- Fix am_zoom and adjust am_zoomout speed for the automap.
Browse files Browse the repository at this point in the history
  • Loading branch information
drfrag666 committed Jul 7, 2020
1 parent cc07c56 commit d1373c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/am_map.cpp
Expand Up @@ -86,7 +86,9 @@ enum
// C++ cannot do static const floats in a class, so these need to be global...
static const double PLAYERRADIUS = 16.; // player radius for automap checking
static const double M_ZOOMIN = 2; // how much zoom-in per second
static const double M_ZOOMOUT = 0.25; // how much zoom-out per second
static const double M_ZOOMOUT = 0.2; // how much zoom-out per second
static const double M_OLDZOOMIN = (1.02); // for am_zoom
static const double M_OLDZOOMOUT = (1 / 1.02);

static FTextureID marknums[AM_NUMMARKPOINTS]; // numbers used for marking by the automap
bool automapactive = false;
Expand Down Expand Up @@ -1464,11 +1466,11 @@ void DAutomap::changeWindowScale (double delta)

if (am_zoomdir > 0)
{
mtof_zoommul = M_ZOOMIN * am_zoomdir;
mtof_zoommul = M_OLDZOOMIN * am_zoomdir;
}
else if (am_zoomdir < 0)
{
mtof_zoommul = M_ZOOMOUT / -am_zoomdir;
mtof_zoommul = M_OLDZOOMOUT / -am_zoomdir;
}
else if (buttonMap.ButtonDown(Button_AM_ZoomIn))
{
Expand Down

0 comments on commit d1373c7

Please sign in to comment.