- removed some redundant static_casts.

This commit is contained in:
Christoph Oelckers 2017-04-12 10:29:04 +02:00
commit 80801d11b1
5 changed files with 9 additions and 10 deletions

View file

@ -1116,7 +1116,7 @@ static PClassActor *ParseActorHeader(FScanner &sc, Baggage *bag)
sc.ScriptMessage("Replaced type '%s' not found for %s", replaceName.GetChars(), info->TypeName.GetChars());
}
ResetBaggage (bag, info == RUNTIME_CLASS(AActor) ? NULL : static_cast<PClassActor *>(info->ParentClass));
ResetBaggage (bag, ValidateActor(info->ParentClass));
bag->Info = info;
bag->Lumpnum = sc.LumpNum;
#ifdef _DEBUG

View file

@ -1071,7 +1071,7 @@ DEFINE_PROPERTY(distancecheck, S, Actor)
}
else if (cv->GetRealType() == CVAR_Int)
{
static_cast<PClassActor*>(info)->ActorInfo()->distancecheck = static_cast<FIntCVar *>(cv);
info->ActorInfo()->distancecheck = static_cast<FIntCVar *>(cv);
}
else
{