mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Minor refactoring to kill various Rubocop warnings
This commit is contained in:
@@ -402,9 +402,9 @@ def getFormattedText(bitmap,xDst,yDst,widthDst,heightDst,text,lineheight=32,
|
||||
while text[FORMATREGEXP]
|
||||
textchunks.push($~.pre_match)
|
||||
if $~[3]
|
||||
controls.push([$~[2].downcase,$~[4],-1,$~[1]=="/" ? true : false])
|
||||
controls.push([$~[2].downcase, $~[4], -1, $~[1] == "/"])
|
||||
else
|
||||
controls.push([$~[2].downcase,"",-1,$~[1]=="/" ? true : false])
|
||||
controls.push([$~[2].downcase, "", -1, $~[1] == "/"])
|
||||
end
|
||||
text=$~.post_match
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user