Maptools - Cleanup pre-2.14 compatibility code (#9342)

ref #9219
This commit is contained in:
PabstMirror 2023-09-05 08:38:38 -05:00 committed by GitHub
parent e3d6d6cc4e
commit 03c3e74636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -10,7 +10,7 @@
#define VERSION_AR MAJOR,MINOR,PATCHLVL,BUILD
// MINIMAL required version for the Mod. Components can specify others..
#define REQUIRED_VERSION 2.12
#define REQUIRED_VERSION 2.14
#define REQUIRED_CBA_VERSION {3,15,7}
#ifdef COMPONENT_BEAUTIFIED

View File

@ -42,9 +42,6 @@ if (GVAR(freedrawing)) then {[_theMap, _textureWidth] call FUNC(drawLinesOnRoame
getResolution params ["_resWidth", "_resHeight", "", "", "_aspectRatio"];
private _scaleX = 32 * _textureWidth * CONSTANT_SCALE * (call FUNC(calculateMapScale));
private _scaleY = _scaleX;
if (((productVersion # 2) < 213)) then { // remove block after 2.14 release
_scaleY = _scaleX * ((_resWidth / _resHeight) / _aspectRatio); // handle bad aspect ratios
};
// Position of the fixed part
private _xPos = GVAR(mapTool_pos) select 0;