diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-12 11:45:56 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-12 11:55:07 +0100 |
commit | cb4b4d584c4d08791207ff92870b400a84faa742 (patch) | |
tree | fc740c000f1283fb695de5556cdd59efcf71e65b /src/core/Radar.h | |
parent | Merge branch 'lcs-dev' into lcs (diff) | |
parent | premake: add startrpoject; add lto option; fix copying of binary to gamedir; update premake5.exe (diff) | |
download | re3-cb4b4d584c4d08791207ff92870b400a84faa742.tar re3-cb4b4d584c4d08791207ff92870b400a84faa742.tar.gz re3-cb4b4d584c4d08791207ff92870b400a84faa742.tar.bz2 re3-cb4b4d584c4d08791207ff92870b400a84faa742.tar.lz re3-cb4b4d584c4d08791207ff92870b400a84faa742.tar.xz re3-cb4b4d584c4d08791207ff92870b400a84faa742.tar.zst re3-cb4b4d584c4d08791207ff92870b400a84faa742.zip |
Diffstat (limited to 'src/core/Radar.h')
-rw-r--r-- | src/core/Radar.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/Radar.h b/src/core/Radar.h index ec047b74..6e0f36f8 100644 --- a/src/core/Radar.h +++ b/src/core/Radar.h @@ -161,8 +161,28 @@ struct sRadarTraceSave // Values for screen space #define RADAR_LEFT (40.0f) #define RADAR_BOTTOM (40.0f) + +#ifdef FIX_RADAR +/* + The values are from an early screenshot taken before R* broke radar + #define RADAR_WIDTH (82.0f) + #define RADAR_HEIGHT (82.0f) +*/ +#define RADAR_WIDTH ((CDraw::ms_bFixRadar) ? (82.0f) : (94.0f)) +#define RADAR_HEIGHT ((CDraw::ms_bFixRadar) ? (82.0f) : (76.0f)) +#else +/* + broken since forever, someone tried to fix size for 640x512(PAL) + http://aap.rockstarvision.com/pics/gta3/ps2screens/gta3_interface.jpg + but failed: + http://aap.rockstarvision.com/pics/gta3/artwork/gta3_artwork_16.jpg + most likely the guy used something like this: + int y = 82 * (640.0/512.0)/(640.0/480.0); + int x = y * (640.0/512.0); +*/ #define RADAR_WIDTH (94.0f) #define RADAR_HEIGHT (76.0f) +#endif class CRadar { |