mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 14:24:56 +00:00
Merge branch 'shader-refactor'
This commit is contained in:
@@ -1081,7 +1081,7 @@ void CGameArea::FillInStaticGeometry(bool textures) {
|
||||
|
||||
TToken<CModel> nullModel;
|
||||
inst.m_instance = std::make_unique<CBooModel>(nullModel, nullptr, &inst.m_surfaces, matSet, vbo, ibo,
|
||||
inst.x34_aabb, inst.x0_visorFlags, 0, nullptr);
|
||||
inst.x34_aabb, inst.x0_visorFlags, 0);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -138,7 +138,7 @@ void CScriptPickup::Touch(CActor& act, CStateManager& mgr) {
|
||||
}
|
||||
}
|
||||
|
||||
mgr.GetPlayerState()->InitializePowerUp(x258_itemType, x260_capacity);
|
||||
mgr.GetPlayerState()->AddPowerUp(x258_itemType, x260_capacity);
|
||||
mgr.GetPlayerState()->IncrPickup(x258_itemType, x25c_amount);
|
||||
mgr.FreeScriptObject(GetUniqueId());
|
||||
SendScriptMsgs(EScriptObjectState::Arrived, mgr, EScriptObjectMessage::None);
|
||||
|
||||
@@ -19,7 +19,7 @@ void CScriptPlayerStateChange::Accept(IVisitor& visitor) { visitor.Visit(this);
|
||||
|
||||
void CScriptPlayerStateChange::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId objId, CStateManager& stateMgr) {
|
||||
if (GetActive() && msg == EScriptObjectMessage::SetToZero) {
|
||||
stateMgr.GetPlayerState()->InitializePowerUp(CPlayerState::EItemType(x34_itemType), x3c_itemCapacity);
|
||||
stateMgr.GetPlayerState()->AddPowerUp(CPlayerState::EItemType(x34_itemType), x3c_itemCapacity);
|
||||
stateMgr.GetPlayerState()->IncrPickup(CPlayerState::EItemType(x34_itemType), x38_itemCount);
|
||||
|
||||
if (x44_ctrlCmdOpt == EControlCommandOption::Filtered && x40_ctrl == EControl::Filtered) {
|
||||
|
||||
Reference in New Issue
Block a user