new game bug fix

This commit is contained in:
2026-03-04 13:06:35 -05:00
parent 554d6198fd
commit b81296a4f2
3 changed files with 3 additions and 42 deletions

View File

@@ -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

View File

@@ -110,6 +110,8 @@ namespace game::state
character.queue_play({.animation = dialogue.start.animation, .isInterruptible = false}); character.queue_play({.animation = dialogue.start.animation, .isInterruptible = false});
character.tick(); character.tick();
isStart = true; isStart = true;
isStartBegin = false;
isStartEnd = false;
} }
} }

View File

@@ -177,7 +177,7 @@ namespace game::state::main
// Food stolen // Food stolen
if (auto animation = character.animation_get(character.animation_name_convert(eatArea.animation)); 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)) if (!math::is_point_in_rectf(rect, heldItem->position))
text.set(dialogue.get(isOverCapacity ? dialogue.foodTakenFull : dialogue.foodTaken), character); text.set(dialogue.get(isOverCapacity ? dialogue.foodTakenFull : dialogue.foodTaken), character);