mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- Fixed: The Hexen status bar still uses MAX_MANA for some calculations instead
of MaxAmount. SVN r1630 (trunk)
This commit is contained in:
parent
5061e2e8fd
commit
2ab76070c0
3 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,8 @@
|
|||
June 1, 2009 (Changes by Graf Zahl)
|
||||
June 2, 2009 (Changes by Graf Zahl)
|
||||
- Fixed: The Hexen status bar still uses MAX_MANA for some calculations instead
|
||||
of MaxAmount.
|
||||
|
||||
June 1, 2009 (Changes by Graf Zahl)
|
||||
- Added Blzut3's submission for displaying underwater stats in SBARINFO.
|
||||
|
||||
May 31, 2009 (Changes by Graf Zahl)
|
||||
|
|
|
@ -100,7 +100,7 @@ void FManaBar::SetVial (FTexture *pic, AActor *actor, const PClass *manaType)
|
|||
|
||||
ammo = actor->FindInventory (manaType);
|
||||
level = ammo != NULL ? ammo->Amount : 0;
|
||||
level = MIN (22*level/MAX_MANA, 22);
|
||||
level = MIN (22*level/ammo->MaxAmount, 22);
|
||||
if (VialPic != pic || VialLevel != level)
|
||||
{
|
||||
VialPic = pic;
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
#include "info.h"
|
||||
#include "s_sound.h"
|
||||
|
||||
#define MAX_MANA 200
|
||||
|
||||
#define NUM_WEAPON_SLOTS 10
|
||||
|
||||
class player_t;
|
||||
|
|
Loading…
Reference in a new issue