From b81296a4f216f10169927608435edb1a1919a34a Mon Sep 17 00:00:00 2001 From: shweet Date: Wed, 4 Mar 2026 13:06:35 -0500 Subject: [PATCH] new game bug fix --- .github/workflows/build.yml | 41 --------------------------------- src/state/main.cpp | 2 ++ src/state/main/item_manager.cpp | 2 +- 3 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ebf1a11..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Build - -on: - push: - branches: - - master - pull_request: - workflow_dispatch: - -jobs: - build: - name: Build Game - runs-on: ubuntu-latest - - steps: - - name: Checkout Project - uses: actions/checkout@v6 - with: - submodules: "recursive" - - - name: "Install dependencies" - run: | - sudo apt-get update -y - sudo apt-get install -y \ - gnome-desktop-testing libasound2-dev libpulse-dev libaudio-dev libjack-dev libsndio-dev \ - libusb-1.0-0-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev \ - libxss-dev libxtst-dev libwayland-dev libxkbcommon-dev libdrm-dev libgbm-dev libgl1-mesa-dev \ - libgles2-mesa-dev libegl1-mesa-dev libdbus-1-dev libibus-1.0-dev libudev-dev fcitx-libs-dev - - - name: CMake Build - run: | - mkdir build - cmake -S . -B ./build -DSDL_UNIX_CONSOLE_BUILD=ON - make -C build - - - name: Upload Artifact - uses: actions/upload-artifact@v6 - with: - name: linux-build - path: build/snivy - diff --git a/src/state/main.cpp b/src/state/main.cpp index a56b6bb..73cd90f 100644 --- a/src/state/main.cpp +++ b/src/state/main.cpp @@ -110,6 +110,8 @@ namespace game::state character.queue_play({.animation = dialogue.start.animation, .isInterruptible = false}); character.tick(); isStart = true; + isStartBegin = false; + isStartEnd = false; } } diff --git a/src/state/main/item_manager.cpp b/src/state/main/item_manager.cpp index ff099ae..e34dcc9 100644 --- a/src/state/main/item_manager.cpp +++ b/src/state/main/item_manager.cpp @@ -177,7 +177,7 @@ namespace game::state::main // Food stolen if (auto animation = character.animation_get(character.animation_name_convert(eatArea.animation)); - character.is_playing(animation->name) && !isOverCapacity) + character.is_playing(animation->name)) { if (!math::is_point_in_rectf(rect, heldItem->position)) text.set(dialogue.get(isOverCapacity ? dialogue.foodTakenFull : dialogue.foodTaken), character);