more script cleanup
This commit is contained in:
@@ -334,7 +334,6 @@ function WideScale(AR4_3, AR16_9)
|
|||||||
return scale( SCREEN_WIDTH, 640, 854, AR4_3, AR16_9 )
|
return scale( SCREEN_WIDTH, 640, 854, AR4_3, AR16_9 )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
local function round(num, idp)
|
local function round(num, idp)
|
||||||
if idp and idp > 0 then
|
if idp and idp > 0 then
|
||||||
local mult = 10 ^ idp;
|
local mult = 10 ^ idp;
|
||||||
|
|||||||
@@ -8,12 +8,7 @@ local function CurGameName()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Check the active game mode against a string. Cut down typing this in metrics.
|
-- Check the active game mode against a string. Cut down typing this in metrics.
|
||||||
function IsGame(str)
|
function IsGame(str) return CurGameName() == str end
|
||||||
if CurGameName() == str then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
-- GetExtraColorThreshold()
|
-- GetExtraColorThreshold()
|
||||||
-- [en] returns the difficulty threshold in meter
|
-- [en] returns the difficulty threshold in meter
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
--does not work
|
|
||||||
Reference in New Issue
Block a user