summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2021-06-03 20:58:04 +0200
committerRay <[email protected]>2021-06-03 20:58:04 +0200
commit0565fb9fb6018e82acb5d4d5d9fd7aefabe40d3d (patch)
tree56f67546fd94ac9554855e4439beee2ac31876c6 /examples
parent121c689b78290c2d89ae25b956ac036889570afe (diff)
downloadraylib-0565fb9fb6018e82acb5d4d5d9fd7aefabe40d3d.tar.gz
raylib-0565fb9fb6018e82acb5d4d5d9fd7aefabe40d3d.zip
Update models_mesh_picking.c
Diffstat (limited to 'examples')
-rw-r--r--examples/models/models_mesh_picking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/models/models_mesh_picking.c b/examples/models/models_mesh_picking.c
index bf1d9339..c25aeeaf 100644
--- a/examples/models/models_mesh_picking.c
+++ b/examples/models/models_mesh_picking.c
@@ -197,7 +197,7 @@ int main(void)
collision.normal.y,
collision.normal.z), 10, ypos + 30, 10, BLACK);
- if (triHitInfo.hit && strcmp(hitObjectName, "Triangle") == 0)
+ if (triHitInfo.hit && TextIsEqual(hitObjectName, "Triangle"))
DrawText(TextFormat("Barycenter: %3.2f %3.2f %3.2f", bary.x, bary.y, bary.z), 10, ypos + 45, 10, BLACK);
}