X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=sv_main.c;h=019ad9d49370bd8a67609543b6c1bad2c822482a;hb=46adaeecfa4e8d64fa6d557d276421de70f75464;hp=63dd5a81d7767e23814306232899d9243184ce02;hpb=e88a73794afa1f0fe65fc70d318f4e288cabc0d1;p=xonotic%2Fdarkplaces.git diff --git a/sv_main.c b/sv_main.c index 63dd5a81..019ad9d4 100644 --- a/sv_main.c +++ b/sv_main.c @@ -209,13 +209,22 @@ void SV_StartSound (prvm_edict_t *entity, int channel, const char *sample, int v int sound_num, field_mask, i, ent; if (volume < 0 || volume > 255) - Host_Error ("SV_StartSound: volume = %i", volume); + { + Con_Printf ("SV_StartSound: volume = %i", volume); + return; + } if (attenuation < 0 || attenuation > 4) - Host_Error ("SV_StartSound: attenuation = %f", attenuation); + { + Con_Printf ("SV_StartSound: attenuation = %f", attenuation); + return; + } if (channel < 0 || channel > 7) - Host_Error ("SV_StartSound: channel = %i", channel); + { + Con_Printf ("SV_StartSound: channel = %i", channel); + return; + } if (sv.datagram.cursize > MAX_PACKETFRAGMENT-21) return; @@ -1727,6 +1736,7 @@ void SV_SpawnServer (const char *server) //prog->num_edicts = svs.maxclients+1; sv.state = ss_loading; + prog->allowworldwrites = true; sv.paused = false; *prog->time = sv.time = 1.0; @@ -1797,6 +1807,7 @@ void SV_SpawnServer (const char *server) // all setup is completed, any further precache statements are errors sv.state = ss_active; + prog->allowworldwrites = false; // run two frames to allow everything to settle for (i = 0;i < 2;i++)