diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-07 21:08:32 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-07 21:08:32 +0200 |
| commit | 85ade98d72850f1db2549f665c4fc51961e1611a (patch) | |
| tree | 40a7c1f15685ad16710beb22af1f740e5048a224 /src/character.cpp | |
| parent | 21eaaee936a47742f59eb6b5665422de2bd8e7ae (diff) | |
prevent character clipping through walls/doors
Diffstat (limited to 'src/character.cpp')
| -rw-r--r-- | src/character.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/character.cpp b/src/character.cpp index 5e42d4e8..0dbaa157 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -216,7 +216,7 @@ character::character(object_id id, struct chunk& c, const character_proto& proto if (!atlas) atlas = loader.anim_atlas("npc-walk", loader.ANIM_PATH); fm_soft_assert(atlas->check_rotation(r)); - entity::set_bbox_(offset, bbox_offset, Vector2ub(iTILE_SIZE2/4), pass); + entity::set_bbox_(offset, bbox_offset, Vector2ub(iTILE_SIZE2/2), pass); } } // namespace floormat |
