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:
Magnus Norddahl 2022-11-07 23:38:52 +01:00
parent 1420e4f6d5
commit 11c4e5900c
2 changed files with 2 additions and 2 deletions

View File

@ -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]]);

View File

@ -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;
// MoellerTrumbore ray-triangle intersection algorithm:
// Moeller-Trumbore ray-triangle intersection algorithm:
vec3 D = ray.end - ray.start;