diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-02 18:32:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-02 22:54:16 +0200 |
commit | b93032e49cd69da178984f9912205d182f12f61e (patch) | |
tree | 2caae8f9db5776a39a731e8fb82ed30ec7fb6b06 /src/scenery.cpp | |
parent | 6abcd7d52cda334c58ec999d212491fc24f13c9d (diff) |
now call script update
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r-- | src/scenery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp index 442b712c..c7d3b51d 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -47,7 +47,7 @@ scenery::scenery(object_id id, class chunk& c, const scenery_proto& proto) : // ---------- generic_scenery ---------- -void generic_scenery::update(size_t&, const Ns&) {} +void generic_scenery::update(const std::shared_ptr<object>&, size_t&, const Ns&) {} Vector2 generic_scenery::ordinal_offset(Vector2b offset) const { return Vector2(offset); } bool generic_scenery::can_activate(size_t) const { return interactive; } bool generic_scenery::activate(size_t) { return false; } @@ -76,7 +76,7 @@ generic_scenery::generic_scenery(object_id id, class chunk& c, const generic_sce enum scenery_type door_scenery::scenery_type() const { return scenery_type::door; } -void door_scenery::update(size_t&, const Ns& dt) +void door_scenery::update(const std::shared_ptr<object>&, size_t&, const Ns& dt) { if (!atlas || !active) return; |