mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 14:51:40 +00:00
Fix warning: result of comparison of constant -1 with expression of type 'uint16_t' is always true
Fix warning: illegal character encoding in string literal
This commit is contained in:
parent
1420e4f6d5
commit
11c4e5900c
2 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ IntSector *FLevel::GetSectorFromSubSector(const MapSubsectorEx *sub)
|
|||
for (int i = 0; i < (int)sub->numlines; i++)
|
||||
{
|
||||
MapSegGLEx *seg = &GLSegs[sub->firstline + i];
|
||||
if (seg->side != NO_SIDE_INDEX)
|
||||
if ((int16_t)seg->side != NO_SIDE_INDEX)
|
||||
{
|
||||
IntLineDef *line = &Lines[seg->linedef];
|
||||
return GetFrontSector(&Sides[line->sidenum[seg->side]]);
|
||||
|
|
|
@ -309,7 +309,7 @@ float intersect_triangle_ray(RayBBox ray, int a, out float barycentricB, out flo
|
|||
p[1] = vertices[elements[start_element + 1]].xyz;
|
||||
p[2] = vertices[elements[start_element + 2]].xyz;
|
||||
|
||||
// Moeller–Trumbore ray-triangle intersection algorithm:
|
||||
// Moeller-Trumbore ray-triangle intersection algorithm:
|
||||
|
||||
vec3 D = ray.end - ray.start;
|
||||
|
||||
|
|
Loading…
Reference in a new issue