summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.h
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2021-01-08 17:43:31 +0100
committerGitHub <noreply@github.com>2021-01-08 17:43:31 +0100
commit6e42c791cf3bbcb59363ab913a4d909b5345ab1b (patch)
treef39e4ab8a86ccfae72bf59b3ce984a02cc13b50a /src/core/Radar.h
parentMerge pull request #930 from Nick007J/master (diff)
parentbb .ini hello defines (diff)
downloadre3-6e42c791cf3bbcb59363ab913a4d909b5345ab1b.tar
re3-6e42c791cf3bbcb59363ab913a4d909b5345ab1b.tar.gz
re3-6e42c791cf3bbcb59363ab913a4d909b5345ab1b.tar.bz2
re3-6e42c791cf3bbcb59363ab913a4d909b5345ab1b.tar.lz
re3-6e42c791cf3bbcb59363ab913a4d909b5345ab1b.tar.xz
re3-6e42c791cf3bbcb59363ab913a4d909b5345ab1b.tar.zst
re3-6e42c791cf3bbcb59363ab913a4d909b5345ab1b.zip
Diffstat (limited to 'src/core/Radar.h')
-rw-r--r--src/core/Radar.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/Radar.h b/src/core/Radar.h
index 5caf5bbb..725c8351 100644
--- a/src/core/Radar.h
+++ b/src/core/Radar.h
@@ -91,8 +91,26 @@ VALIDATE_SIZE(sRadarTrace, 0x30);
#else
#define RADAR_BOTTOM (47.0f)
#endif
+
+#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)
+#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
{