git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12746
d7cf8633-e32d-0410-b094-
e92efae38249
sound_num = MSG_ReadByte(&cl_message);
}
sound_num = MSG_ReadByte(&cl_message);
}
- channel = CHAN_NET2ENGINE(channel);
-
MSG_ReadVector(&cl_message, pos, cls.protocol);
if (sound_num < 0 || sound_num >= MAX_SOUNDS)
MSG_ReadVector(&cl_message, pos, cls.protocol);
if (sound_num < 0 || sound_num >= MAX_SOUNDS)
- channel = CHAN_USER2ENGINE(channel);
-
if (!IS_CHAN(channel))
{
VM_Warning(prog, "VM_CL_sound: channel must be in range 0-127\n");
if (!IS_CHAN(channel))
{
VM_Warning(prog, "VM_CL_sound: channel must be in range 0-127\n");
// temporarily so that it can be set by the cvar command,
// and then reprotect it afterwards
int crcflags = csqc_progcrc.flags;
// temporarily so that it can be set by the cvar command,
// and then reprotect it afterwards
int crcflags = csqc_progcrc.flags;
- int sizeflags = csqc_progcrc.flags;
csqc_progcrc.flags &= ~CVAR_READONLY;
csqc_progsize.flags &= ~CVAR_READONLY;
Cmd_ExecuteString(&cmd_client, msg, src_command, true);
csqc_progcrc.flags &= ~CVAR_READONLY;
csqc_progsize.flags &= ~CVAR_READONLY;
Cmd_ExecuteString(&cmd_client, msg, src_command, true);
- csqc_progcrc.flags = crcflags;
- csqc_progsize.flags = sizeflags;
+ csqc_progcrc.flags = csqc_progsize.flags = crcflags;
{
fs_offset_t count, done;
{
fs_offset_t count, done;
+ if (buffersize == 0 || !buffer)
return 0;
// Get rid of the ungetc character
return 0;
// Get rid of the ungetc character