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
+4 -4
View File
@@ -28,18 +28,18 @@ function LoadSongBackground()
end
function Sprite:LoadFromCurrentSongBackground()
local song = GAMESTATE:GetCurrentSong();
local song = GAMESTATE:GetCurrentSong()
if not song then
local trail = GAMESTATE:GetCurrentTrail(GAMESTATE:GetMasterPlayerNumber());
local trail = GAMESTATE:GetCurrentTrail(GAMESTATE:GetMasterPlayerNumber())
local e = trail:GetTrailEntries()
if #e > 0 then
song = e[1]:GetSong();
song = e[1]:GetSong()
end
end
if not song then return end
self:LoadFromSongBackground(song);
self:LoadFromSongBackground(song)
end
function Sprite:position( f )