Skip to content

Commit

Permalink
Merge pull request #735 from LoboEire/master
Browse files Browse the repository at this point in the history
Automap zooming tweaks
  • Loading branch information
dashodanger authored Sep 10, 2024
2 parents 148b001 + b5921c7 commit b9666b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/mapping/EdgeC_UDB_Config/Includes/EdgeC_misc.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ mapformat_udmf

// Enabled setting brightness for upper, middle, and lower sidedef independently from each other
distinctsidedefpartbrightness = false;

// Enables support for 3D floors (not really, since support for 3D floors is pretty much hard-coded, but
// this tells plugins that the game supports 3D floors)
effect3dfloorsupport = true;

// Enables support for vertex heights
vertexheightsupport = true;


//engine = "edge-classic"; // override that so that DB2 uses the correct namespace
Expand Down
8 changes: 6 additions & 2 deletions source_files/edge/am_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static constexpr uint8_t kAutomapTotalMarkPoints = 9;

// scale on entry
static constexpr float kAutomapMinimumScale = 0.5f;
static constexpr float kAutomapInitialScale = 4.0f;
static constexpr float kAutomapInitialScale = 2.0f;
static constexpr float kAutomapMaximumScale = 100.0f;

// how much the automap moves window per tic in frame-buffer coordinates
Expand Down Expand Up @@ -270,7 +270,11 @@ void AutomapInitLevel(void)

FindMinMaxBoundaries();

map_scale = kAutomapInitialScale;
if (map_scale == 0.0f) //Not been changed yet so set a default
{
map_scale = kAutomapInitialScale;
}

}

void AutomapStop(void)
Expand Down

0 comments on commit b9666b7

Please sign in to comment.