*errorstring = "unable to open videofile";
libavw_close(s);
Z_Free(s);
- return NULL;
+ return NULL;
}
}
*errorstring = qLibAvW_ErrorString(errorcode);
libavw_close(s);
Z_Free(s);
- return NULL;
+ return NULL;
}
// open video for playing
*errorstring = qLibAvW_ErrorString(qLibAvW_StreamGetError(s->stream));
libavw_close(s);
Z_Free(s);
- return NULL;
+ return NULL;
}
// all right, start codec
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;
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);
}
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;
.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
}
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";
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
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]);
NULL,
NULL,
&&handle_OP_GLOAD_V
- };
+ };
#define DISPATCH_OPCODE() \
goto *dispatchtable[(++st)->op]
#define HANDLE_OPCODE(opcode) handle_##opcode
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++];