Fixed some more prints to be cvar developer 1 only.
This commit is contained in:
parent
0b75db861e
commit
197b373335
5 changed files with 13 additions and 4 deletions
|
@ -42,7 +42,7 @@ void monstermaker::Trigger ( void )
|
|||
unit.classname = strcat("spawnfunc_", m_strMonster);
|
||||
unit.think = monstermaker_spawnunit;
|
||||
unit.nextthink = time + 0.1f;
|
||||
print(sprintf("^2monstermaker::^3Trigger^7: Spawning %s\n", m_strMonster));
|
||||
dprint(sprintf("^2monstermaker::^3Trigger^7: Spawning %s\n", m_strMonster));
|
||||
setorigin(unit, origin);
|
||||
} else {
|
||||
print(sprintf("^1monstermaker::^3Trigger^7: cannot call spawnfunction for %s\n", m_strMonster));
|
||||
|
|
|
@ -225,6 +225,9 @@ SV_AddDebugPolygons(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (cvar("developer") != 1)
|
||||
return;
|
||||
|
||||
makevectors(self.v_angle);
|
||||
|
||||
/* draw the rectangles */
|
||||
|
|
|
@ -82,7 +82,7 @@ Sentences_GetSamples(string word)
|
|||
/* check if the word is present at all */
|
||||
for (int i = 0; i < g_sentences_count; i++) {
|
||||
if (g_sentences[i] == word) {
|
||||
print(sprintf("^3Sentences_GetSamples^7: Found %s\n", word));
|
||||
dprint(sprintf("^3Sentences_GetSamples^7: Found %s\n", word));
|
||||
return word;
|
||||
}
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ Sentences_GetSamples(string word)
|
|||
/* if we've got one, choose a random sample of them */
|
||||
if (gc) {
|
||||
int r = floor(random(0, gc));
|
||||
print(sprintf("^3Sentences_GetSamples^7: Choosing %s%i\n", word, r));
|
||||
dprint(sprintf("^3Sentences_GetSamples^7: Choosing %s%i\n", word, r));
|
||||
return sprintf("%s%i", word, r);
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ Gamerules_Spawn(player pl)
|
|||
|
||||
if (cvar("sv_playerslots") == 1 || cvar("coop") == 1) {
|
||||
if (startspot != "") {
|
||||
print(sprintf("^1Gamerules_Spawn: Startspot is %s\n", startspot));
|
||||
print(sprintf("^3Gamerules_Spawn^7: Startspot is %s\n", startspot));
|
||||
Gamerules_DecodeChangeParms(pl);
|
||||
setorigin(pl, Landmark_GetSpot());
|
||||
} else {
|
||||
|
|
|
@ -142,3 +142,9 @@ void Sound_Update(entity a, int b, int c, float d)
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
__wrap void dprint(string m)
|
||||
{
|
||||
if (cvar("developer") == 1)
|
||||
return prior(m);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue