added "QC function <name> is missing" warnings to more PR_ExecuteProgram calls
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Oct 2004 20:15:00 +0000 (20:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 8 Oct 2004 20:15:00 +0000 (20:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4614 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c
pr_edict.c
sv_phys.c
sv_user.c

index e62c96b..202bae1 100644 (file)
@@ -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
index 007e6b4..0482bcf 100644 (file)
@@ -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++;
index bfd8e9d..8c6681d 100644 (file)
--- 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)
index fc0af45..332f725 100644 (file)
--- 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 ();