//============================================================================
-// World_ClearLink is used for new headnodes
+/// World_ClearLink is used for new headnodes
void World_ClearLink (link_t *l)
{
l->entitynumber = 0;
===============
*/
-void World_SetSize(world_t *world, const vec3_t mins, const vec3_t maxs)
+void World_SetSize(world_t *world, const char *filename, const vec3_t mins, const vec3_t maxs)
{
int i;
+
+ strlcpy(world->filename, filename, sizeof(world->filename));
+ VectorCopy(mins, world->mins);
+ VectorCopy(maxs, world->maxs);
+
// the areagrid_marknumber is not allowed to be 0
if (world->areagrid_marknumber < 1)
world->areagrid_marknumber = 1;
if (entitynumber <= 0 || entitynumber >= prog->max_edicts || PRVM_EDICT_NUM(entitynumber) != ent)
{
- Con_Printf ("SV_LinkEdict_AreaGrid: invalid edict %p (edicts is %p, edict compared to prog->edicts is %i)\n", ent, prog->edicts, entitynumber);
+ Con_Printf ("SV_LinkEdict_AreaGrid: invalid edict %p (edicts is %p, edict compared to prog->edicts is %i)\n", (void *)ent, (void *)prog->edicts, entitynumber);
return;
}