Skip to content

Commit

Permalink
Print warning to listener for long strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pudingus committed Jul 27, 2020
1 parent 0867b3f commit 2367bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mafia_4ds/4ds.ms
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ fn WriteText f txt = (

if count > 255 then (
count = 255
messageBox ("String '" + txt + "' is over the maximum of 255 characters!") icon:#warning
--messageBox ("String '" + txt + "' is over the maximum of 255 characters!") icon:#warning
format "String '%' is over the maximum of 255 characters!\n" txt
)
WriteByte f count #unsigned
for i = 1 to count do (
Expand Down

0 comments on commit 2367bc1

Please sign in to comment.