Cleanup, part 2 (working on fallback)
This commit is contained in:
@@ -16,10 +16,10 @@ PLAYER_1 = "PlayerNumber_P1"
|
||||
PLAYER_2 = "PlayerNumber_P2"
|
||||
NUM_PLAYERS = #PlayerNumber
|
||||
|
||||
function string:find_last( text )
|
||||
function string:find_last(text)
|
||||
local LastPos = 0
|
||||
while true do
|
||||
local p = string.find( self, text, LastPos+1, true )
|
||||
local p = string.find(self, text, LastPos+1, true)
|
||||
if not p then
|
||||
return LastPos
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user