compile error, lua const

This commit is contained in:
Henrique Santiago 2012-06-01 17:53:04 -03:00
parent 14db1066fc
commit 6fce78d519
3 changed files with 7 additions and 4 deletions

View File

@ -41,9 +41,9 @@ function Client.init()
g_window.show() g_window.show()
-- play startup music -- play startup music
g_sounds.playMusic("startup.ogg", 3) --g_sounds.playMusic("startup.ogg", 3)
connect(g_game, { onGameStart = function() g_sounds.stopMusic(3) end }) --connect(g_game, { onGameStart = function() g_sounds.stopMusic(3) end })
connect(g_game, { onGameEnd= function() g_sounds.playMusic("startup.ogg", 3) end }) --connect(g_game, { onGameEnd= function() g_sounds.playMusic("startup.ogg", 3) end })
end, 0) end, 0)
end, 0) end, 0)
end end

View File

@ -12,7 +12,10 @@ LogWarning = 2
LogError = 3 LogError = 3
LogFatal = 4 LogFatal = 4
MouseFocusReason = 0
KeyboardFocusReason = 1
ActiveFocusReason = 2 ActiveFocusReason = 2
OtherFocusReason = 3
KeyboardNoModifier = 0 KeyboardNoModifier = 0
KeyboardCtrlModifier = 1 KeyboardCtrlModifier = 1

View File

@ -172,7 +172,7 @@ bool ParticleEmitter::load(const OTMLNodePtr& node)
m_pColorsStops.push_back(0); m_pColorsStops.push_back(0);
if(m_pColors.size() != m_pColorsStops.size()) { if(m_pColors.size() != m_pColorsStops.size()) {
g_logger.error(stdext::format("particle colors must be equal to colorstops-1")); g_logger.error("particle colors must be equal to colorstops-1");
return false; return false;
} }