diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 01:37:57 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-09 01:37:57 +0200 |
| commit | 250e0817fedc6e9337debe07bf64a19bd7e0baa8 (patch) | |
| tree | 84a215affadc135f2bedc70268701bcf6b248b84 /src/scenery.cpp | |
| parent | eea5eafd6a004a2d7242c46646c98701e7fc0af2 (diff) | |
w
Diffstat (limited to 'src/scenery.cpp')
| -rw-r--r-- | src/scenery.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp index 484a84e9..df9fffba 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -222,21 +222,6 @@ scenery_variants scenery::subtype_from_proto(object_id id, class chunk& c, const ); } -scenery_variants scenery::subtype_from_scenery_type(object_id id, class chunk& c, enum scenery_type type) -{ - switch (type) - { - case scenery_type::none: - case scenery_type::COUNT: - break; - case scenery_type::generic: - return generic_scenery{id, c, {}}; - case scenery_type::door: - return door_scenery{id, c, {}}; - } - fm_throw("invalid scenery type"_cf, (int)type); -} - scenery::scenery(object_id id, class chunk& c, const scenery_proto& proto) : object{id, c, proto}, subtype{ subtype_from_proto(id, c, proto.subtype) } { |
