r4058 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Aug 8 08:08:40 EDT 2008
Author: div0
Date: 2008-08-08 08:08:40 -0400 (Fri, 08 Aug 2008)
New Revision: 4058
Modified:
trunk/data/qcsrc/server/miscfunctions.qc
Log:
make the chat message actually work
Modified: trunk/data/qcsrc/server/miscfunctions.qc
===================================================================
--- trunk/data/qcsrc/server/miscfunctions.qc 2008-08-08 12:05:05 UTC (rev 4057)
+++ trunk/data/qcsrc/server/miscfunctions.qc 2008-08-08 12:08:40 UTC (rev 4058)
@@ -215,6 +215,7 @@
}
}
+float spawnpoint_nag;
void relocate_spawnpoint()
{
// nudge off the floor
@@ -228,14 +229,18 @@
self.mins = PL_MIN;
self.maxs = PL_MAX;
move_out_of_solid(self);
- if(cvar("g_spawnpoints_auto_move_out_of_solid"))
- print("\{1}"); // chat beep, and put the error in the chat area
print("^1NOTE: this map needs FIXING. Spawnpoint at ", vtos(o - '0 0 1'));
print(" needs to be moved out of solid, e.g. by '", ftos(self.origin_x - o_x));
print(" ", ftos(self.origin_y - o_y));
print(" ", ftos(self.origin_z - o_z), "'\n");
- if(!cvar("g_spawnpoints_auto_move_out_of_solid"))
+ if(cvar("g_spawnpoints_auto_move_out_of_solid"))
{
+ if(!spawnpoint_nag)
+ print("\{1}^1NOTE: this map needs FIXING (it contains spawnpoints in solid, see server log)\n");
+ spawnpoint_nag = 1;
+ }
+ else
+ {
self.origin = o;
self.mins = self.maxs = '0 0 0';
objerror("player spawn point in solid, mapper sucks!\n");
More information about the nexuiz-commits
mailing list