aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-12-29 12:42:08 +0000
committernathan <nathansmith@disroot.org>2025-12-29 12:42:08 +0000
commit91b1c45da05c892a04b6a1daa99b1de89fa1f363 (patch)
tree5eeb0e8f7c5a4f0382b69780a4a14f69f971d9a2 /src/entities
parent8f2d85aa019f089b6946f3b9e0355ce59b12b67a (diff)
downloadFindThings-91b1c45da05c892a04b6a1daa99b1de89fa1f363.tar.gz
FindThings-91b1c45da05c892a04b6a1daa99b1de89fa1f363.tar.bz2
FindThings-91b1c45da05c892a04b6a1daa99b1de89fa1f363.zip
working on building roofs
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/johnsStore.c3
-rw-r--r--src/entities/samanthasSpot.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/src/entities/johnsStore.c b/src/entities/johnsStore.c
index e3f4908..41217ed 100644
--- a/src/entities/johnsStore.c
+++ b/src/entities/johnsStore.c
@@ -27,8 +27,7 @@ void updateJohnsStore(Entity* entity, Game* game)
building->model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture =
game->assets.textures[JOHNS_SHOP_TEXTURE];
DrawModel(building->model, entity->position, 1.0, WHITE);
-
- DrawBoundingBox(entity->box, RED);
+ drawBuildingRoof(building, entity->position, BROWN);
}
void closeJohnsStore(Entity* entity)
diff --git a/src/entities/samanthasSpot.c b/src/entities/samanthasSpot.c
index 0205e46..2022f37 100644
--- a/src/entities/samanthasSpot.c
+++ b/src/entities/samanthasSpot.c
@@ -13,7 +13,9 @@ void initSamanthasSpot(Entity* entity)
void updateSamanthasSpot(Entity* entity, Game* game)
{
DrawModel(game->world.samanthasSpotFloor,
- Vector3Add(entity->position,
- (Vector3){0.0, -SAMANTHAS_SPOT_HEIGHT + 0.01, 0.0}),
- 1.0, WHITE);
+ Vector3Add(
+ entity->position,
+ (Vector3){0.0, -SAMANTHAS_SPOT_HEIGHT + TOUCHING_OFFSET, 0.0}),
+ 1.0,
+ WHITE);
}