projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fcb8c4
)
argh! use self.weapon instead of weapid here
author
FruitieX <fruitiex@gmail.com>
Wed, 15 Dec 2010 17:47:01 +0000
(19:47 +0200)
committer
FruitieX <fruitiex@gmail.com>
Wed, 15 Dec 2010 17:47:01 +0000
(19:47 +0200)
qcsrc/client/hud.qc
patch
|
blob
|
history
diff --git
a/qcsrc/client/hud.qc
b/qcsrc/client/hud.qc
index c42d67fa03705b95c589daab74b463e59aadcbd4..1226c252cccd1fab358f082bde6884507acdc143 100644
(file)
--- a/
qcsrc/client/hud.qc
+++ b/
qcsrc/client/hud.qc
@@
-1770,10
+1770,10
@@
void HUD_Weapons(void)
drawstring(wpnpos, getcommandkey(ftos(weapid), strcat("impulse ", ftos(weapid))), '1 1 0' * 0.5 * wpnsize_y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
// draw ammo status bar
drawstring(wpnpos, getcommandkey(ftos(weapid), strcat("impulse ", ftos(weapid))), '1 1 0' * 0.5 * wpnsize_y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
// draw ammo status bar
- if(show_ammo &&
weapid != WEP_TUBA && weapid != WEP_LASER && weapid
!= WEP_PORTO)
+ if(show_ammo &&
self.weapon != WEP_TUBA && self.weapon != WEP_LASER && self.weapon
!= WEP_PORTO)
{
a = 0;
{
a = 0;
- type = GetAmmoTypeForWep(
weapid
);
+ type = GetAmmoTypeForWep(
self.weapon
);
if(type != -1)
a = getstati(GetAmmoStat(type)); // how much ammo do we have?
if(type != -1)
a = getstati(GetAmmoStat(type)); // how much ammo do we have?