GL - fixed what some asshole did in weapon
This commit is contained in:
parent
1db41a863b
commit
7394f68769
|
@ -18,17 +18,9 @@ Weapon::Weapon()
|
||||||
|
|
||||||
Weapon::Weapon(int MaxNrOfSockets,Player *owner)
|
Weapon::Weapon(int MaxNrOfSockets,Player *owner)
|
||||||
{
|
{
|
||||||
if(MaxNrOfSockets > 1) return;
|
|
||||||
|
|
||||||
|
|
||||||
attatchmentSockets.Resize(MaxNrOfSockets);
|
attatchmentSockets.Resize(MaxNrOfSockets);
|
||||||
attatchmentSockets[0] = new AttatchmentSocket();
|
attatchmentSockets[0] = new AttatchmentSocket();
|
||||||
|
|
||||||
for (int i = 0; i < MaxNrOfSockets; i++)
|
|
||||||
{
|
|
||||||
this->attatchmentSockets[i] = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
weaponState = WEAPON_STATE_IDLE;
|
weaponState = WEAPON_STATE_IDLE;
|
||||||
currentNrOfAttatchments = 0;
|
currentNrOfAttatchments = 0;
|
||||||
selectedAttatchment = 0;
|
selectedAttatchment = 0;
|
||||||
|
|
Loading…
Reference in New Issue