Guess what. It's not 2005 anymore.
SVN r184 (trunk)
This commit is contained in:
parent
5859aa7194
commit
e2179d5c2d
148 changed files with 903 additions and 977 deletions
|
|
@ -3,7 +3,7 @@
|
|||
** Base status bar implementation
|
||||
**
|
||||
**---------------------------------------------------------------------------
|
||||
** Copyright 1998-2005 Randy Heit
|
||||
** Copyright 1998-2006 Randy Heit
|
||||
** All rights reserved.
|
||||
**
|
||||
** Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -1571,23 +1571,23 @@ AInventory *FBaseStatusBar::ValidateInvFirst (int numVisible) const
|
|||
|
||||
void FBaseStatusBar::GetCurrentAmmo (AAmmo *&ammo1, AAmmo *&ammo2, int &ammocount1, int &ammocount2) const
|
||||
{
|
||||
if (CPlayer->ReadyWeapon != NULL)
|
||||
{
|
||||
ammo1 = CPlayer->ReadyWeapon->Ammo1;
|
||||
ammo2 = CPlayer->ReadyWeapon->Ammo2;
|
||||
if (ammo1 == NULL)
|
||||
{
|
||||
ammo1 = ammo2;
|
||||
ammo2 = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ammo1 = ammo2 = NULL;
|
||||
}
|
||||
ammocount1 = ammo1 != NULL ? ammo1->Amount : 0;
|
||||
ammocount2 = ammo2 != NULL ? ammo2->Amount : 0;
|
||||
}
|
||||
if (CPlayer->ReadyWeapon != NULL)
|
||||
{
|
||||
ammo1 = CPlayer->ReadyWeapon->Ammo1;
|
||||
ammo2 = CPlayer->ReadyWeapon->Ammo2;
|
||||
if (ammo1 == NULL)
|
||||
{
|
||||
ammo1 = ammo2;
|
||||
ammo2 = NULL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ammo1 = ammo2 = NULL;
|
||||
}
|
||||
ammocount1 = ammo1 != NULL ? ammo1->Amount : 0;
|
||||
ammocount2 = ammo2 != NULL ? ammo2->Amount : 0;
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue