From 589d56dd82bf7710fd243b4ac40bba79bdf39fc7 Mon Sep 17 00:00:00 2001 From: doyle Date: Tue, 26 Sep 2023 21:44:02 +1000 Subject: [PATCH] fp: Invert the move-ability flag on entity type check --- feely_pona.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/feely_pona.cpp b/feely_pona.cpp index fe095ae..50a19f3 100644 --- a/feely_pona.cpp +++ b/feely_pona.cpp @@ -641,7 +641,7 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_PlatformInput *input Dqn_V2 acceleration_meters_per_s = {}; if (game->clicked_entity == entity->handle) { if (entity->flags & (FP_GameEntityFlag_MoveByKeyboard | FP_GameEntityFlag_MoveByGamepad)) { - bool move_entity = false; + bool move_entity = true; switch (entity->type) { case FP_EntityType_Terry: { auto *state = DQN_CAST(FP_EntityTerryState *)&entity->action.state; @@ -653,8 +653,8 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_PlatformInput *input move_entity = *state == FP_EntitySmoochieState_Run || *state == FP_EntitySmoochieState_Idle; } break; - case FP_EntityType_Merchant: move_entity = true; break; - case FP_EntityType_Nil: move_entity = true; break; + case FP_EntityType_Merchant: break; + case FP_EntityType_Nil: break; } if (move_entity) {