diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/client.cc | 24 | ||||
| -rw-r--r-- | src/client/client.h | 2 | 
2 files changed, 26 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 diff --git a/src/client/client.h b/src/client/client.h index 9b60671..664bbb4 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -37,6 +37,8 @@ public:  	/// remove sound source notification  	virtual void notify_remove_sound(size_t source); +	/// clear zone notification +	virtual void notify_zoneclear(core::Zone *zone);  };  | 
