Skip to content

Commit

Permalink
Fixed issue #218, caused by new libclf versions
Browse files Browse the repository at this point in the history
> **Note**: This commit message is written in Markdown for the sake of
clean documentation.

This commit fixes issue
[#218](#218)
which was a combination of compilation errors starting from libclf
commit `b6a280bc57b31fd3ebad3b55b5ae75a5bec46a61`. Another error
appeared as well, starting from `2a2e0d3900bfd11826626a8b28c7a6bf9bcb410c`.
  • Loading branch information
MolassesLover committed Oct 23, 2023
1 parent 3183712 commit b98fc86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/stringizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,9 +885,9 @@ namespace
+ (com.parameters[2] ? Stringizer::tr("(Wait)") : "");
}

QString stringizeSpriteTransparency(const lcf::rpg::EventCommand& com)
QString stringizePlayerVisibility(const lcf::rpg::EventCommand& com)
{
return Stringizer::tr("Sprite Transparency") + ": "
return Stringizer::tr("Player Visibility") + ": "
+ (com.parameters[0] ? Stringizer::tr("Opaque") : Stringizer::tr("Transparent"));
}

Expand Down Expand Up @@ -956,9 +956,9 @@ namespace
+ (com.parameters[1] ? ", " + Stringizer::tr("Vert Scroll") : "");
}

QString stringizeChangeEncounterRate(const lcf::rpg::EventCommand& com)
QString stringizeChangeEncounterSteps(const lcf::rpg::EventCommand& com)
{
return Stringizer::tr("Change Encounter Rate") + ": " + QString::number(com.parameters[0]);
return Stringizer::tr("Change Encounter Steps") + ": " + QString::number(com.parameters[0]);
}

QString stringizeTileSubstitution(const lcf::rpg::EventCommand& com)
Expand Down Expand Up @@ -1517,7 +1517,7 @@ namespace Stringizer
case C::MovePicture: return stringizeMovePicture(com);
case C::ErasePicture: return stringizeErasePicture(com);
case C::ShowBattleAnimation: return stringizeShowBattleAnimation(com);
case C::SpriteTransparency: return stringizeSpriteTransparency(com);
case C::PlayerVisibility: return stringizePlayerVisibility(com);
case C::FlashSprite: return stringizeFlashSprite(com);
case C::MoveEvent: return stringizeMoveEvent(com);
case C::ProceedWithMovement: return tr("Proceed With Movement");
Expand All @@ -1532,7 +1532,7 @@ namespace Stringizer
case C::KeyInputProc: return stringizeKeyInputProc(com);
case C::ChangeMapTileset: return stringizeChangeMapTileset(com);
case C::ChangePBG: return stringizeChangePBG(com);
case C::ChangeEncounterRate: return stringizeChangeEncounterRate(com);
case C::ChangeEncounterSteps: return stringizeChangeEncounterSteps(com);
case C::TileSubstitution: return stringizeTileSubstitution(com);
case C::TeleportTargets: return stringizeTeleportTargets(com);
case C::ChangeTeleportAccess: return stringizeChangeTeleportAccess(com);
Expand Down

0 comments on commit b98fc86

Please sign in to comment.