fix some bad English

This commit is contained in:
Christoph Oelckers 2023-10-10 23:42:39 +02:00
parent 12fe313f4c
commit 8ca2ce3042
4 changed files with 9 additions and 9 deletions

View file

@ -2861,7 +2861,7 @@ static void checkCeilHit(DBloodActor* actor)
actor2->spr.flags |= 5;
#ifdef NOONE_EXTENSIONS
// add size shroom abilities
if ((actor->IsPlayerActor() && isShrinked(actor)) || (actor2->IsPlayerActor() && isGrown(actor2))) {
if ((actor->IsPlayerActor() && isShrunk(actor)) || (actor2->IsPlayerActor() && isGrown(actor2))) {
int mass1 = getDudeInfo(actor2)->mass;
int mass2 = getDudeInfo(actor)->mass;
@ -2947,7 +2947,7 @@ static void checkHit(DBloodActor* actor)
#ifdef NOONE_EXTENSIONS
// add size shroom abilities
if ((actor2->IsPlayerActor() && isShrinked(actor2)) || (actor->IsPlayerActor() && isGrown(actor)))
if ((actor2->IsPlayerActor() && isShrunk(actor2)) || (actor->IsPlayerActor() && isGrown(actor)))
{
if (actor->vel.X != 0 && actor2->IsDudeActor())
{
@ -3020,7 +3020,7 @@ static void checkFloorHit(DBloodActor* actor)
#ifdef NOONE_EXTENSIONS
// add size shroom abilities
if ((actor2->IsPlayerActor() && isShrinked(actor2)) || (actor->IsPlayerActor() && isGrown(actor)))
if ((actor2->IsPlayerActor() && isShrunk(actor2)) || (actor->IsPlayerActor() && isGrown(actor)))
{
int mass1 = getDudeInfo(actor)->mass;
@ -3112,7 +3112,7 @@ static void checkFloorHit(DBloodActor* actor)
case kDudePlayer7:
case kDudePlayer8:
#ifdef NOONE_EXTENSIONS
if (pPlayer && !isShrinked(actor))
if (pPlayer && !isShrunk(actor))
#else
if (pPlayer)
#endif

View file

@ -4379,7 +4379,7 @@ bool condCheckPlayer(DBloodActor* aCond, int cmpOp, bool PUSH)
case 14: return condCmp(pPlayer->posture + 1, arg1, arg2, cmpOp);
case 46: return condCmp(pPlayer->sceneQav, arg1, arg2, cmpOp);
case 47: return (pPlayer->godMode || powerupCheck(pPlayer, kPwUpDeathMask));
case 48: return isShrinked(pPlayer->GetActor());
case 48: return isShrunk(pPlayer->GetActor());
case 49: return isGrown(pPlayer->GetActor());
}
@ -7459,7 +7459,7 @@ bool isGrown(DBloodActor* actor)
else return false;
}
bool isShrinked(DBloodActor* actor)
bool isShrunk(DBloodActor* actor)
{
if (powerupCheck(getPlayer(actor), kPwUpShrinkShroom) > 0) return true;
else if (actor->hasX() && actor->xspr.scale > 0 && actor->xspr.scale <= 128) return true;

View file

@ -357,7 +357,7 @@ void callbackGenDudeUpdate(DBloodActor* actor);
// ------------------------------------------------------------------------- //
DBloodPlayer* getPlayerById(int id);
bool isGrown(DBloodActor* pSprite);
bool isShrinked(DBloodActor* pSprite);
bool isShrunk(DBloodActor* pSprite);
bool IsBurningDude(DBloodActor* pSprite);
bool IsKillableDude(DBloodActor* pSprite);
bool isActive(DBloodActor* nSprite);

View file

@ -295,7 +295,7 @@ bool powerupActivate(DBloodPlayer* pPlayer, int nPowerUp)
break;
case kItemShroomGrow:
if (!gModernMap) break;
else if (isShrinked(pPlayer->GetActor())) playerDeactivateShrooms(pPlayer);
else if (isShrunk(pPlayer->GetActor())) playerDeactivateShrooms(pPlayer);
else {
playerSizeGrow(pPlayer, 2);
if (powerupCheck(getPlayer(pPlayer->GetActor()), kPwUpShadowCloak) > 0) {
@ -1042,7 +1042,7 @@ bool PickupItem(DBloodPlayer* pPlayer, DBloodActor* itemactor)
if (gModernMap) {
switch (itemactor->GetType()) {
case kItemShroomShrink:
if (isShrinked(pPlayer->GetActor())) return false;
if (isShrunk(pPlayer->GetActor())) return false;
break;
case kItemShroomGrow:
if (isGrown(pPlayer->GetActor())) return false;