mirror of https://github.com/AxioDL/metaforce.git
CFlaahgra: Remove two usages of const_cast
These are no longer necessary.
This commit is contained in:
parent
4834720bb0
commit
57d9e0f294
|
@ -121,8 +121,7 @@ void CFlaahgra::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateM
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
case EScriptObjectMessage::InitializedInArea: {
|
case EScriptObjectMessage::InitializedInArea: {
|
||||||
if (!x8e4_25_loading && !x8e4_24_loaded) {
|
if (!x8e4_25_loading && !x8e4_24_loaded) {
|
||||||
const_cast<CGameArea::CPostConstructed*>(mgr.GetWorld()->GetAreaAlways(GetAreaIdAlways())->GetPostConstructed())
|
mgr.GetWorld()->GetArea(GetAreaIdAlways())->GetPostConstructed()->x113c_playerActorsLoading++;
|
||||||
->x113c_playerActorsLoading++;
|
|
||||||
x8e4_25_loading = true;
|
x8e4_25_loading = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -401,8 +400,7 @@ void CFlaahgra::LoadTokens(CStateManager& mgr) {
|
||||||
void CFlaahgra::FinalizeLoad(CStateManager& mgr) {
|
void CFlaahgra::FinalizeLoad(CStateManager& mgr) {
|
||||||
x8e4_24_loaded = true;
|
x8e4_24_loaded = true;
|
||||||
if (x8e4_25_loading) {
|
if (x8e4_25_loading) {
|
||||||
const_cast<CGameArea::CPostConstructed*>(mgr.GetWorld()->GetAreaAlways(GetAreaIdAlways())->GetPostConstructed())
|
mgr.GetWorld()->GetArea(GetAreaIdAlways())->GetPostConstructed()->x113c_playerActorsLoading--;
|
||||||
->x113c_playerActorsLoading--;
|
|
||||||
x8e4_25_loading = false;
|
x8e4_25_loading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue