summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-06-16 18:05:02 +0200
committer_AG <gennariarmando@outlook.com>2019-06-16 18:05:22 +0200
commit4c385edd0c0641cd4c081abd036fdc4ac5648eb6 (patch)
tree7ef822bab3c3d904006b6bd5a307df0caf7aa1c5 /src/render
parentUpdates Draw.cpp, MusicManager.cpp. (diff)
downloadre3-4c385edd0c0641cd4c081abd036fdc4ac5648eb6.tar
re3-4c385edd0c0641cd4c081abd036fdc4ac5648eb6.tar.gz
re3-4c385edd0c0641cd4c081abd036fdc4ac5648eb6.tar.bz2
re3-4c385edd0c0641cd4c081abd036fdc4ac5648eb6.tar.lz
re3-4c385edd0c0641cd4c081abd036fdc4ac5648eb6.tar.xz
re3-4c385edd0c0641cd4c081abd036fdc4ac5648eb6.tar.zst
re3-4c385edd0c0641cd4c081abd036fdc4ac5648eb6.zip
Diffstat (limited to '')
-rw-r--r--src/render/Hud.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 1d454d2a..d7529025 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -76,7 +76,7 @@ int16 &CHud::PagerTimer = *(int16*)0x95CC3A;
int16 &CHud::PagerOn = *(int16*)0x95CCA0;
CSprite2d *CHud::Sprites = (CSprite2d*)0x95CB9C;
-char *HudNames[] = { "fist",
+char *WeaponFilenames[] = { "fist",
"fistm",
"bat",
"batm",
@@ -136,8 +136,8 @@ void CHud::Initialise() {
CTxdStore::PopCurrentTxd();
CTxdStore::SetCurrentTxd(HudTXD);
- for (int i = 0; i < 23; i++) {
- Sprites[i].SetTexture(HudNames[i * 2]);
+ for (int i = 0; i < ARRAY_SIZE(WeaponFilenames) / 2; i++) {
+ Sprites[i].SetTexture(WeaponFilenames[i * 2]);
}
gpSniperSightTex = RwTextureRead("sitesniper", 0);