Skip to content

Commit

Permalink
lua: title case unknown monster names
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Nov 3, 2024
1 parent 471d8f3 commit ce4eec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Misc/qs_pak/scripts/edicts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function edicts.ismonster(edict)

local name = monsternames[classname]
-- Remove classname prefix if present
or (classname:find('monster_', 1, true) == 1 and classname:sub(9) or classname)
or titlecase(classname:find('monster_', 1, true) == 1 and classname:sub(9) or classname)

return name, edict.origin, edict.angles
end
Expand Down

0 comments on commit ce4eec5

Please sign in to comment.