Thread: #zunderworld
View Single Post
  #1  
Old 07-30-2004, 01:09 AM
Facet42
Fire Beetle
 
Join Date: Jul 2004
Posts: 25
Default #zunderworld

The zunderworld command is not working correctly in the current version of 0.5.7-DR6 code, updating the function as below appears to fix it...

Code:
void command_zunderworld(Client *c, const Seperator *sep)
{
	if(sep->arg[1][0]==0)
	{
		c->Message(0, "Usage: #zunderworld <zcoord>");
	}
	else
	{
		zone->newzone_data.underworld = atof(sep->arg[1]);
		c->Message(0, "New ZUnderWorld value set");
		APPLAYER* outapp = new APPLAYER(OP_NewZone, sizeof(NewZone_Struct));
		memcpy(outapp->pBuffer, &zone->newzone_data, outapp->size);
		entity_list.QueueClients(c, outapp);
		safe_delete(outapp);
	}
}
__________________
This signature left intentionally blank.
Reply With Quote