summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2021-01-08 23:01:41 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2021-01-08 23:01:41 +0100
commit7a3ee349da51543f5e273df1a7d932a25602ea2a (patch)
tree89dfabef536de8e7163e4fe1b094957e6d3ac762 /src/core/Radar.h
parentTrain anims in enum (diff)
downloadre3-7a3ee349da51543f5e273df1a7d932a25602ea2a.tar
re3-7a3ee349da51543f5e273df1a7d932a25602ea2a.tar.gz
re3-7a3ee349da51543f5e273df1a7d932a25602ea2a.tar.bz2
re3-7a3ee349da51543f5e273df1a7d932a25602ea2a.tar.lz
re3-7a3ee349da51543f5e273df1a7d932a25602ea2a.tar.xz
re3-7a3ee349da51543f5e273df1a7d932a25602ea2a.tar.zst
re3-7a3ee349da51543f5e273df1a7d932a25602ea2a.zip
Diffstat (limited to '')
-rw-r--r--src/core/Radar.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/core/Radar.h b/src/core/Radar.h
index 8f2e7069..0829dda6 100644
--- a/src/core/Radar.h
+++ b/src/core/Radar.h
@@ -156,8 +156,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
{