Log in

View Full Version : #zunderworld


Facet42
07-30-2004, 01:09 AM
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...

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);
}
}