diff options
| author | ghassanpl <kronikarz@gmail.com> | 2016-08-06 16:58:48 +0200 |
|---|---|---|
| committer | ghassanpl <kronikarz@gmail.com> | 2016-08-06 16:58:48 +0200 |
| commit | 4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5 (patch) | |
| tree | 88dfb074579589a5ea6eba92462bb44863d18798 /examples/text_writing_anim.lua | |
| parent | d5f5f0a9302435945b730e5ec001bda39741f3c7 (diff) | |
| download | raylib-4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5.tar.gz raylib-4960e6b6d7b4cba6125cfb8bb2fef043db8e5ba5.zip | |
Fixes for some Lua bugs
Diffstat (limited to 'examples/text_writing_anim.lua')
| -rw-r--r-- | examples/text_writing_anim.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/text_writing_anim.lua b/examples/text_writing_anim.lua index 37f1efba..05195dc4 100644 --- a/examples/text_writing_anim.lua +++ b/examples/text_writing_anim.lua @@ -38,7 +38,7 @@ while not WindowShouldClose() do -- Detect window close button or ESC ClearBackground(RAYWHITE) - DrawText(SubText(message, 0, framesCounter/10), 210, 160, 20, MAROON) + DrawText(string.sub(message, 0, framesCounter/10), 210, 160, 20, MAROON) DrawText("PRESS [ENTER] to RESTART!", 240, 280, 20, LIGHTGRAY) |
