From 8ad725429292be22086d51df285907742be7a91a Mon Sep 17 00:00:00 2001 From: jussi Date: Sun, 2 Jul 2023 17:44:24 +0300 Subject: LuaJIT compatibility. --- examples/pong_vec/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/pong_vec') diff --git a/examples/pong_vec/main.lua b/examples/pong_vec/main.lua index 2b81452..cf8e86c 100644 --- a/examples/pong_vec/main.lua +++ b/examples/pong_vec/main.lua @@ -126,7 +126,7 @@ function RL.draw() RL.DrawCircle( ball.pos, ball.radius, RL.WHITE ) -- Draw score. - RL.DrawText( 0, playerLeft.score, { 50, 10 }, 40, 2, RL.WHITE ) - local rightTextSize = Vec2:new( RL.MeasureText( 0, playerRight.score, 40, 2 ) ) - RL.DrawText( 0, playerRight.score, { winSize.x - 50 - rightTextSize.x, 10 }, 40, 2, RL.WHITE ) + RL.DrawText( 0, tostring( playerLeft.score ), { 50, 10 }, 40, 2, RL.WHITE ) + local rightTextSize = Vec2:new( RL.MeasureText( 0, tostring( playerRight.score ), 40, 2 ) ) + RL.DrawText( 0, tostring( playerRight.score ), { winSize.x - 50 - rightTextSize.x, 10 }, 40, 2, RL.WHITE ) end -- cgit v1.2.3