Cleanup, part 2 (working on fallback)

This commit is contained in:
Colby Klein
2011-08-18 11:35:14 -07:00
parent e9c0794bba
commit bf4a10ce7b
10 changed files with 118 additions and 165 deletions
+2 -2
View File
@@ -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