From: drjaska Date: Sat, 13 May 2023 20:02:35 +0000 (+0300) Subject: indentation changes found via "^[ ][\t]" X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf5d3828df4135cb3c490dc87c99853595a1b6d6;p=xonotic%2Fdarkplaces.git indentation changes found via "^[ ][\t]" Signed-off-by: drjaska --- diff --git a/cl_video_libavw.c b/cl_video_libavw.c index b3a86871..a873cc5e 100644 --- a/cl_video_libavw.c +++ b/cl_video_libavw.c @@ -289,7 +289,7 @@ void *LibAvW_OpenVideo(clvideo_t *video, char *filename, const char **errorstrin *errorstring = "unable to open videofile"; libavw_close(s); Z_Free(s); - return NULL; + return NULL; } } @@ -299,7 +299,7 @@ void *LibAvW_OpenVideo(clvideo_t *video, char *filename, const char **errorstrin *errorstring = qLibAvW_ErrorString(errorcode); libavw_close(s); Z_Free(s); - return NULL; + return NULL; } // open video for playing @@ -308,7 +308,7 @@ void *LibAvW_OpenVideo(clvideo_t *video, char *filename, const char **errorstrin *errorstring = qLibAvW_ErrorString(qLibAvW_StreamGetError(s->stream)); libavw_close(s); Z_Free(s); - return NULL; + return NULL; } // all right, start codec diff --git a/collision.c b/collision.c index 02115ccb..ff081a96 100644 --- a/collision.c +++ b/collision.c @@ -1772,7 +1772,7 @@ static void Collision_ClipExtendFinish(extendtraceinfo_t *extendtraceinfo) if (trace->fraction > 1.0f) { // note that ent may refer to either startsolid or fraction<1, we can't restore the startsolid ent unfortunately - trace->ent = NULL; + trace->ent = NULL; trace->hitq3surfaceflags = 0; trace->hitsupercontents = 0; trace->hittexture = NULL; diff --git a/console.c b/console.c index ac5e4eef..ef4283af 100644 --- a/console.c +++ b/console.c @@ -439,7 +439,7 @@ static void Log_DestBuffer_Flush_NoLock(void) log_dest_buffer[log_dest_buffer_pos++] = 0; if(!NetConn_HaveServerPorts() && !NetConn_HaveClientPorts()) // then temporarily open one - { + { have_opened_temp_sockets = true; NetConn_OpenServerPorts(true); } diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index 058399f4..1b944282 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -1720,7 +1720,7 @@ const float GEOMTYPE_CAPSULE = 3; // with leading axis automatically determi const float GEOMTYPE_TRIMESH = 4; // triangle mesh const float GEOMTYPE_CYLINDER = 5; // like capsule but not capped // note that ODE's builtin cylinder support is experimental, somewhat bugged and unfinished (no cylinder-cylinder collision) - // to use properly working cylinder should build ODE with LIBCCD extension + // to use properly working cylinder should build ODE with LIBCCD extension const float GEOMTYPE_CAPSULE_X = 6; // capsule with fixed leading axis const float GEOMTYPE_CAPSULE_Y = 7; const float GEOMTYPE_CAPSULE_Z = 8; @@ -1767,8 +1767,8 @@ const float FORCETYPE_TORQUE = 3; .float forcetype; // type of force .float erp; // error restitution parameter, makes ODE solver attempt to fix errors in contacts, // bringing together 2 joints or fixing object being stuch in other object, - // a value of 0.1 will fix slightly, a value of 1.0 attempts to fix whole error in one frame - // use with care as high values makes system unstable and likely to explode + // a value of 0.1 will fix slightly, a value of 1.0 attempts to fix whole error in one frame + // use with care as high values makes system unstable and likely to explode //builtin definitions: void(entity e, float physics_enabled) physics_enable = #540; // enable or disable physics on object void(entity e, vector force, vector force_pos) physics_addforce = #541; // deprecated, apply a force from certain origin, length of force vector is power of force diff --git a/dpvsimpledecode.c b/dpvsimpledecode.c index 011c95bf..8094bdd7 100644 --- a/dpvsimpledecode.c +++ b/dpvsimpledecode.c @@ -428,7 +428,7 @@ void *dpvsimpledecode_open(clvideo_t *video, char *filename, const char **errors } else if (errorstring != NULL) *errorstring = "not a dpvideo file"; - hz_bitstream_read_blocks_free(s->framedatablocks); + hz_bitstream_read_blocks_free(s->framedatablocks); } else if (errorstring != NULL) *errorstring = "unable to allocate memory for reading buffer"; diff --git a/image_png.c b/image_png.c index 817e5cd5..bb5d4a11 100644 --- a/image_png.c +++ b/image_png.c @@ -501,8 +501,8 @@ qbool PNG_SaveImage_preflipped (const char *filename, int width, int height, qbo pnginfo = (void *)qpng_create_info_struct(png); if(!pnginfo) { - qpng_destroy_write_struct(&png, NULL); - return false; + qpng_destroy_write_struct(&png, NULL); + return false; } // this must be memset before the setjmp error handler, because it relies diff --git a/model_brush.c b/model_brush.c index d161f8d8..a9acb456 100644 --- a/model_brush.c +++ b/model_brush.c @@ -5922,12 +5922,12 @@ static void Mod_Q3BSP_LoadFaces(lump_t *l) cytess = bound(0, cytess, 1024); // store it for the LOD grouping step - patchtess[patchtesscount].info.xsize = patchsize[0]; - patchtess[patchtesscount].info.ysize = patchsize[1]; - patchtess[patchtesscount].info.lods[PATCH_LOD_VISUAL].xtess = xtess; - patchtess[patchtesscount].info.lods[PATCH_LOD_VISUAL].ytess = ytess; - patchtess[patchtesscount].info.lods[PATCH_LOD_COLLISION].xtess = cxtess; - patchtess[patchtesscount].info.lods[PATCH_LOD_COLLISION].ytess = cytess; + patchtess[patchtesscount].info.xsize = patchsize[0]; + patchtess[patchtesscount].info.ysize = patchsize[1]; + patchtess[patchtesscount].info.lods[PATCH_LOD_VISUAL].xtess = xtess; + patchtess[patchtesscount].info.lods[PATCH_LOD_VISUAL].ytess = ytess; + patchtess[patchtesscount].info.lods[PATCH_LOD_COLLISION].xtess = cxtess; + patchtess[patchtesscount].info.lods[PATCH_LOD_COLLISION].ytess = cytess; patchtess[patchtesscount].surface_id = i; patchtess[patchtesscount].lodgroup[0] = LittleFloat(in->specific.patch.mins[0]); diff --git a/prvm_execprogram.h b/prvm_execprogram.h index 7c090e9c..64e62c60 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -289,7 +289,7 @@ int i; NULL, NULL, &&handle_OP_GLOAD_V - }; + }; #define DISPATCH_OPCODE() \ goto *dispatchtable[(++st)->op] #define HANDLE_OPCODE(opcode) handle_##opcode diff --git a/r_shadow.c b/r_shadow.c index adf30be7..aca5fd5e 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -4442,7 +4442,7 @@ static void R_BeginCoronaQuery(rtlight_t *rtlight, float scale, qbool usequery) return; zdist = (DotProduct(rtlight->shadoworigin, r_refdef.view.forward) - DotProduct(r_refdef.view.origin, r_refdef.view.forward)); if (zdist < 32) - return; + return; if (usequery && r_numqueries + 2 <= r_maxqueries) { rtlight->corona_queryindex_allpixels = r_queries[r_numqueries++];