Will this solve nocoords map falling?


(Jaquboss) #1

in BG_InitLocations()
i put small update @ end:

	// Jaquboss , so no crashing without map coordinates...
	if (! world_mins[0] ) {
		locInfo.gridStartCoord[0] = 1200.f;
	Com_Printf( "^1WARNING: Missing Map X Coordinates, define them in worldspawn!" );
	}
	if (! world_mins[1] ) {
		locInfo.gridStartCoord[1] = -1200.f;
	Com_Printf( "^1WARNING: Missing Y Map Coordinates, define them in worldspawn!" );

	}

I wonder if this can help falling of maps without coords ( common begginers error )
Also those sizes are just by eye , i am not sure how wrong they are…
And at end IT IS NOT TESTED…
EDIT: Oops , put warnings under ifs :nag: