Skip to content

Commit

Permalink
Readd crash to jointext with invalid argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Feb 23, 2025
1 parent 1918f37 commit 201b1ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DMCompiler/DMStandard/_Standard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@ proc/step_rand(atom/movable/Ref, Speed=0)
var/target = get_step_rand(Ref)
return Ref.Move(target, get_dir(Ref, target))

proc/jointext(list/List as /list|text, Glue as text|null, Start = 1 as num, End = 0 as num) as text
proc/jointext(list/List as /list|text, Glue as text|null, Start = 1 as num, End = 0 as num) as text|null
if(islist(List))
return List.Join(Glue, Start, End)
return List
if(istext(List))
return List
CRASH("jointext was passed a non-list, non-text value")

proc/lentext(T) as num
return length(T)
Expand Down

0 comments on commit 201b1ec

Please sign in to comment.