fixed two warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5345
d7cf8633-e32d-0410-b094-
e92efae38249
palette.o \
polygon.o \
portals.o \
palette.o \
polygon.o \
portals.o \
-# pr_cmds.o \
-# pr_edict.o \
-# pr_exec.o \
protocol.o \
mvm_cmds.o \
svvm_cmds.o \
protocol.o \
mvm_cmds.o \
svvm_cmds.o \
*/
void PRVM_ED_ClearEdict (prvm_edict_t *e)
{
*/
void PRVM_ED_ClearEdict (prvm_edict_t *e)
{
memset (e->fields.vp, 0, prog->progs->entityfields * 4);
e->priv.required->free = false;
memset (e->fields.vp, 0, prog->progs->entityfields * 4);
e->priv.required->free = false;
//
// tell all connected clients that we are going to a new level
//
//
// tell all connected clients that we are going to a new level
//
{
SV_VM_Begin();
SV_SendReconnect();
{
SV_VM_Begin();
SV_SendReconnect();
//
// load the rest of the entities
//
//
// load the rest of the entities
//
- // AK possible hack since num_edicts is still 0
+ // AK possible hack since num_edicts is still 0
ent = PRVM_EDICT_NUM(0);
memset (ent->fields.server, 0, prog->progs->entityfields * 4);
ent->priv.server->free = false;
ent = PRVM_EDICT_NUM(0);
memset (ent->fields.server, 0, prog->progs->entityfields * 4);
ent->priv.server->free = false;
Con_Printf("step :%3i\n", step);
}
Con_Printf("step :%3i\n", step);
}
-qboolean SV_VM_CB_LoadEdict(prvm_edict_t *ent)
+qboolean SV_VM_CB_LoadEdict(prvm_edict_t *ent)
{
// remove things from different skill levels or deathmatch
if (gamemode != GAME_TRANSFUSION) //Transfusion does this in QC
{
// remove things from different skill levels or deathmatch
if (gamemode != GAME_TRANSFUSION) //Transfusion does this in QC
prog->load_edict = SV_VM_CB_LoadEdict;
prog->init_cmd = VM_SV_Cmd_Init;
prog->reset_cmd = VM_SV_Cmd_Reset;
prog->load_edict = SV_VM_CB_LoadEdict;
prog->init_cmd = VM_SV_Cmd_Init;
prog->reset_cmd = VM_SV_Cmd_Reset;
- prog->error_cmd = NULL; // change this
+ prog->error_cmd = NULL; // change this
// TODO: add a requiredfuncs list (ask LH if this is necessary at all)
PRVM_LoadProgs( sv_progs.string, 0, NULL, REQFIELDS, reqfields );
// TODO: add a requiredfuncs list (ask LH if this is necessary at all)
PRVM_LoadProgs( sv_progs.string, 0, NULL, REQFIELDS, reqfields );
void SV_VM_End(void)
{
PRVM_End;
void SV_VM_End(void)
{
PRVM_End;
-}
\ No newline at end of file