]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
indentation changes found via "^[ ][\t]"
authordrjaska <drjaska83@gmail.com>
Sat, 13 May 2023 20:02:35 +0000 (23:02 +0300)
committerdrjaska <drjaska83@gmail.com>
Sat, 13 May 2023 20:04:28 +0000 (23:04 +0300)
Signed-off-by: drjaska <drjaska83@gmail.com>
cl_video_libavw.c
collision.c
console.c
dpdefs/dpextensions.qc
dpvsimpledecode.c
image_png.c
model_brush.c
prvm_execprogram.h
r_shadow.c

index b3a86871d0f3870b1c588ffe893855e3bc7407ec..a873cc5e4ea63a1eaefad6aeb8e19d95c97e3f88 100644 (file)
@@ -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
index 02115ccbfc4a22d8d4513c0d6ef3ff3c159c98e1..ff081a9651681b53348773225a6d810729ae5208 100644 (file)
@@ -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;
index ac5e4eefc5ccb61822e168da8abe0b39c509e2db..ef4283af6b3c1efd0ecb38e5ba6787136529ac9c 100644 (file)
--- 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);
                }
index 058399f4029c60a62efb9e507dd6b13eb04e1aea..1b9442820bee39f7807ff381c549630080a93329 100644 (file)
@@ -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
index 011c95bf4d32260c3078aaebec28fa304779b10f..8094bdd7dbdff7a2d474630bb2d7e40418b012d2 100644 (file)
@@ -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";
index 817e5cd5d2041189f41289661777c742c51be37c..bb5d4a1168eac89ea665528fcc76975ec9208f17 100644 (file)
@@ -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
index d161f8d8d79427c6f6c5eba04e232e0db2a6c138..a9acb456fa7e55cdf48af0e83b15cacba61477c0 100644 (file)
@@ -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]);
index 7c090e9cb08faa4b37fdb3be2775545bf932b4be..64e62c608efdfd52f8d3e59a03ee20211e101737 100644 (file)
@@ -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
index adf30be7328852df4a044ca87dfd70047ae61273..aca5fd5ef2ee81ee07c086775ad87efc70fa4fcc 100644 (file)
@@ -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++];