Skip to content

Commit

Permalink
fix collision zones
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Jun 28, 2021
1 parent d6a2a01 commit 461e9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions game/world/worldobjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ WorldObjects::WorldObjects(World& owner):owner(owner){
}

WorldObjects::~WorldObjects() {
rootVobs.clear();
interactiveObj.clear();
items.clear();
}

void WorldObjects::load(Serialize &fin) {
Expand Down
5 changes: 2 additions & 3 deletions game/world/worldobjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class WorldObjects final {
};

World& owner;

std::vector<CollisionZone*> collisionZn;
std::vector<std::unique_ptr<Vob>> rootVobs;

SpaceIndex<Interactive> interactiveObj;
Expand All @@ -160,9 +162,6 @@ class WorldObjects final {
std::vector<AbstractTrigger*> triggers;
std::vector<AbstractTrigger*> triggersZn;
std::vector<AbstractTrigger*> triggersTk;

std::vector<CollisionZone*> collisionZn;

std::vector<PerceptionMsg> sndPerc;
std::vector<TriggerEvent> triggerEvents;

Expand Down

0 comments on commit 461e9ca

Please sign in to comment.