diff --git a/codemp/botlib/be_aas_reach.cpp b/codemp/botlib/be_aas_reach.cpp index b72d3e9..241f5f9 100644 --- a/codemp/botlib/be_aas_reach.cpp +++ b/codemp/botlib/be_aas_reach.cpp @@ -1050,8 +1050,8 @@ int AAS_Reachability_Step_Barrier_WaterJump_WalkOffLedge(int area1num, int area2 float length, ground_bestlength, water_bestlength, ground_bestdist, water_bestdist; vec3_t v1, v2, v3, v4, tmpv, p1area1, p1area2, p2area1, p2area2; vec3_t normal, ort, edgevec, start, end, dir; - vec3_t ground_beststart, ground_bestend, ground_bestnormal; - vec3_t water_beststart, water_bestend, water_bestnormal; + vec3_t ground_beststart = {0, 0, 0}, ground_bestend = {0, 0, 0}, ground_bestnormal = {0, 0, 0}; + vec3_t water_beststart = {0, 0, 0}, water_bestend = {0, 0, 0}, water_bestnormal = {0, 0, 0}; vec3_t invgravity = {0, 0, 1}; vec3_t testpoint; aas_plane_t *plane; @@ -2368,7 +2368,7 @@ int AAS_Reachability_Ladder(int area1num, int area2num) float face1area, face2area, bestface1area, bestface2area; float phys_jumpvel, maxjumpheight; vec3_t area1point, area2point, v1, v2, up = {0, 0, 1}; - vec3_t mid, lowestpoint, start, end, sharededgevec, dir; + vec3_t mid, lowestpoint = {0, 0}, start, end, sharededgevec, dir; aas_area_t *area1, *area2; aas_face_t *face1, *face2, *ladderface1, *ladderface2; aas_plane_t *plane1, *plane2; diff --git a/codemp/qcommon/RoffSystem.cpp b/codemp/qcommon/RoffSystem.cpp index d44f0aa..f53bf53 100644 --- a/codemp/qcommon/RoffSystem.cpp +++ b/codemp/qcommon/RoffSystem.cpp @@ -832,6 +832,11 @@ qboolean CROFFSystem::ApplyROFF( SROFFEntity *roff_ent, CROFFSystem::CROFF *roff origin = originTemp; VM_Call( cgvm, CG_GET_ANGLES, roff_ent->mEntID, angleTemp ); angle = angleTemp; +#else + originTrajectory = NULL; + angleTrajectory = NULL; + origin = NULL; + angle = NULL; #endif } else @@ -978,6 +983,11 @@ qboolean CROFFSystem::ClearLerp( SROFFEntity *roff_ent ) origin = originTemp; VM_Call( cgvm, CG_GET_ANGLES, roff_ent->mEntID, angleTemp ); angle = angleTemp; +#else + originTrajectory = NULL; + angleTrajectory = NULL; + origin = NULL; + angle = NULL; #endif } else diff --git a/codemp/qcommon/cm_patch.cpp b/codemp/qcommon/cm_patch.cpp index f3fc726..1143e3b 100644 --- a/codemp/qcommon/cm_patch.cpp +++ b/codemp/qcommon/cm_patch.cpp @@ -1395,7 +1395,7 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, trace_t &trace, const struct float offset, enterFrac, leaveFrac, t; patchPlane_t *planes; facet_t *facet; - float plane[4], bestplane[4]; + float plane[4], bestplane[4] = {0, 0, 0, 0}; vec3_t startp, endp; #ifndef BSPC static cvar_t *cv; diff --git a/codemp/renderer/tr_bsp.cpp b/codemp/renderer/tr_bsp.cpp index 6e423a9..d9e3473 100644 --- a/codemp/renderer/tr_bsp.cpp +++ b/codemp/renderer/tr_bsp.cpp @@ -210,7 +210,7 @@ static void R_LoadLightmaps( lump_t *l, const char *psMapName, world_t &worldDat float g = buf_p[j*3+1]; float b = buf_p[j*3+2]; float intensity; - float out[3]; + float out[3] = {0, 0, 0}; intensity = 0.33f * r + 0.685f * g + 0.063f * b;