1
This commit is contained in:
parent
6d43bec786
commit
a932e54597
@ -43,7 +43,9 @@ void Car::Initialize()
|
|||||||
weapon.weapon_id = weapon_meta->i->id();
|
weapon.weapon_id = weapon_meta->i->id();
|
||||||
weapon.meta = weapon_meta;
|
weapon.meta = weapon_meta;
|
||||||
weapon.Recalc();
|
weapon.Recalc();
|
||||||
|
#if 0
|
||||||
weapon.ammo = weapon.GetClipVolume(this);
|
weapon.ammo = weapon.GetClipVolume(this);
|
||||||
|
#endif
|
||||||
SetCurrWeapon(&weapon);
|
SetCurrWeapon(&weapon);
|
||||||
}
|
}
|
||||||
born_frameno_ = room->GetFrameNo();
|
born_frameno_ = room->GetFrameNo();
|
||||||
@ -62,6 +64,9 @@ void Car::Initialize()
|
|||||||
nullptr
|
nullptr
|
||||||
);
|
);
|
||||||
GetBattleContext()->Init(this);
|
GetBattleContext()->Init(this);
|
||||||
|
if (weapon_meta) {
|
||||||
|
GetCurrWeapon()->ammo = GetCurrWeapon()->GetClipVolume(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
SetHP(GetBattleContext()->GetMaxHP());
|
SetHP(GetBattleContext()->GetMaxHP());
|
||||||
SetMaxHP(std::max(GetHP(), GetMaxHP()));
|
SetMaxHP(std::max(GetHP(), GetMaxHP()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user