From: havoc Date: Fri, 8 Oct 2004 20:15:00 +0000 (+0000) Subject: added "QC function is missing" warnings to more PR_ExecuteProgram calls X-Git-Tag: xonotic-v0.1.0preview~5505 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=6441e74a51b0682ed6ee18649270555a8e0283e2 added "QC function is missing" warnings to more PR_ExecuteProgram calls git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4614 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index e62c96b5..202bae16 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -963,7 +963,7 @@ void Host_Color_f(void) pr_global_struct->time = sv.time; pr_globals[OFS_PARM0] = playercolor; pr_global_struct->self = EDICT_TO_PROG(sv_player); - PR_ExecuteProgram (SV_ChangeTeam, ""); + PR_ExecuteProgram (SV_ChangeTeam, "QC function SV_ChangeTeam is missing"); } else { @@ -1170,7 +1170,7 @@ void Host_Spawn_f (void) Con_DPrint("Calling RestoreGame\n"); pr_global_struct->time = sv.time; pr_global_struct->self = EDICT_TO_PROG(sv_player); - PR_ExecuteProgram (RestoreGame, ""); + PR_ExecuteProgram (RestoreGame, "QC function RestoreGame is missing"); } } else diff --git a/pr_edict.c b/pr_edict.c index 007e6b4b..0482bcfd 100644 --- a/pr_edict.c +++ b/pr_edict.c @@ -1176,7 +1176,7 @@ void ED_LoadFromFile (const char *data) } pr_global_struct->self = EDICT_TO_PROG(ent); - PR_ExecuteProgram (func - pr_functions, ""); + PR_ExecuteProgram (func - pr_functions, "QC function spawn is missing"); spawned++; if (ent->e->free) died++; diff --git a/sv_phys.c b/sv_phys.c index bfd8e9d5..8c6681d7 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -155,7 +155,7 @@ qboolean SV_RunThink (edict_t *ent) pr_global_struct->time = thinktime; pr_global_struct->self = EDICT_TO_PROG(ent); pr_global_struct->other = EDICT_TO_PROG(sv.edicts); - PR_ExecuteProgram (ent->v->think, "NULL think function"); + PR_ExecuteProgram (ent->v->think, "QC function self.think is missing"); return !ent->e->free; } @@ -178,14 +178,14 @@ void SV_Impact (edict_t *e1, edict_t *e2) { pr_global_struct->self = EDICT_TO_PROG(e1); pr_global_struct->other = EDICT_TO_PROG(e2); - PR_ExecuteProgram (e1->v->touch, ""); + PR_ExecuteProgram (e1->v->touch, "QC function self.touch is missing"); } if (e2->v->touch && e2->v->solid != SOLID_NOT) { pr_global_struct->self = EDICT_TO_PROG(e2); pr_global_struct->other = EDICT_TO_PROG(e1); - PR_ExecuteProgram (e2->v->touch, ""); + PR_ExecuteProgram (e2->v->touch, "QC function self.touch is missing"); } pr_global_struct->self = old_self; @@ -769,7 +769,7 @@ void SV_PushMove (edict_t *pusher, float movetime) { pr_global_struct->self = EDICT_TO_PROG(pusher); pr_global_struct->other = EDICT_TO_PROG(check); - PR_ExecuteProgram (pusher->v->blocked, ""); + PR_ExecuteProgram (pusher->v->blocked, "QC function self.blocked is missing"); } break; } @@ -812,7 +812,7 @@ void SV_Physics_Pusher (edict_t *ent) pr_global_struct->time = sv.time; pr_global_struct->self = EDICT_TO_PROG(ent); pr_global_struct->other = EDICT_TO_PROG(sv.edicts); - PR_ExecuteProgram (ent->v->think, "NULL think function"); + PR_ExecuteProgram (ent->v->think, "QC function self.think is missing"); } } @@ -1509,7 +1509,7 @@ void SV_Physics (void) pr_global_struct->self = EDICT_TO_PROG(sv.edicts); pr_global_struct->other = EDICT_TO_PROG(sv.edicts); pr_global_struct->time = sv.time; - PR_ExecuteProgram ((func_t)(EndFrameQC - pr_functions), ""); + PR_ExecuteProgram ((func_t)(EndFrameQC - pr_functions), "QC function EndFrame is missing"); } if (!sv_freezenonclients.integer) diff --git a/sv_user.c b/sv_user.c index fc0af458..332f725e 100644 --- a/sv_user.c +++ b/sv_user.c @@ -729,7 +729,7 @@ void SV_ReadClientMessage(void) { G_INT(OFS_PARM0) = PR_SetString(s); pr_global_struct->self = EDICT_TO_PROG(host_client->edict); - PR_ExecuteProgram ((func_t)(SV_ParseClientCommandQC - pr_functions), ""); + PR_ExecuteProgram ((func_t)(SV_ParseClientCommandQC - pr_functions), "QC function SV_ParseClientCommand is missing"); } else if (strncasecmp(s, "status", 6) == 0 || strncasecmp(s, "name", 4) == 0 @@ -806,7 +806,7 @@ void SV_RunClients (void) { pr_global_struct->time = sv.time; pr_global_struct->self = EDICT_TO_PROG(sv_player); - PR_ExecuteProgram ((func_t)(SV_PlayerPhysicsQC - pr_functions), ""); + PR_ExecuteProgram ((func_t)(SV_PlayerPhysicsQC - pr_functions), "QC function SV_PlayerPhysics is missing"); } else SV_ClientThink ();