Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/client.cc')
-rw-r--r--src/client/client.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/client.cc b/src/client/client.cc
index 93d254e..5d060aa 100644
--- a/src/client/client.cc
+++ b/src/client/client.cc
@@ -222,5 +222,29 @@ void Client::notify_message(std::string const & message)
console()->notify(message);
}
+void Client::notify_zoneclear(core::Zone *zone)
+{
+ // FIXME unload zone textures
+ /*
+ if (!zone)
+ return;
+
+ for (core::Zone::Content::iterator it = zone->content().begin(); it != zone->content.end(); i++) {
+ core:: Entity *entity = (*it);
+
+ if (entity->type() == core::Entity::Globe) {
+ core::EntityGlobe *globe = static_cast<core::EntityGlobe *>(entity);
+ if (globe->render_texture)
+ render::Textures::unload(render_texture);
+
+ }
+
+ if (zone->sky_texture()) {
+ render::Textures::unload(zone->sky_texture());
+ zone->set_sky_texture(0);
+ }
+ */
+}
+
} // namespace client