Fixed DeltaSeconds actor in timed courses to check whether the pref for the delta exists.

This commit is contained in:
Kyzentun
2014-11-29 12:59:51 -07:00
parent 38a98b0964
commit e8c208395d
@@ -8,9 +8,12 @@ local t = LoadFont("ScreenGameplay","RemainingTime") .. {
if params.Player == PlayerNumber then
if params.TapNoteScore then
local tns = ToEnumShortString(params.TapNoteScore)
self:playcommand( "GainSeconds" );
self:playcommand( tns );
self:settextf( "%+1.1fs", PREFSMAN:GetPreference( string.format("TimeMeterSecondsChange%s", tns) ) );
local prefname= ("TimeMeterSecondsChange%s"):format(tns)
if PREFSMAN:PreferenceExists(prefname) then
self:playcommand( "GainSeconds" );
self:playcommand( tns );
self:settextf( "%+1.1fs", PREFSMAN:GetPreference(prefname) );
end
else
return
end