[Scummvm-cvs-logs] CVS: residual lua.cpp,1.37,1.38
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Feb 22 10:18:01 CET 2004
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19716
Modified Files:
lua.cpp
Log Message:
clenaup
Index: lua.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- lua.cpp 21 Feb 2004 22:00:13 -0000 1.37
+++ lua.cpp 22 Feb 2004 18:04:22 -0000 1.38
@@ -1018,39 +1018,23 @@
}
static void StartFullscreenMovie() {
- bool mode = lua_getparam(2) != 0;
- if (g_smush->play(lua_getstring(lua_getparam(1)), 0, 0)) {
- lua_pushnumber(1);
- } else {
- lua_pushnil();
- }
+ bool mode = getbool(2);
+ pushbool(g_smush->play(lua_getstring(lua_getparam(1)), 0, 0));
}
static void StartMovie() {
- bool mode = lua_getparam(2) != 0;
+ bool mode = getbool(2);
int x = lua_getparam(3);
int y = lua_getparam(4);
- if (g_smush->play(lua_getstring(lua_getparam(1)), x, y)) {
- lua_pushnumber(1);
- } else {
- lua_pushnil();
- }
+ pushbool(g_smush->play(lua_getstring(lua_getparam(1)), x, y));
}
static void IsFullscreenMoviePlaying() {
- if (g_smush->isPlaying()) {
- lua_pushnumber(1);
- } else {
- lua_pushnil();
- }
+ pushbool(g_smush->isPlaying());
}
static void IsMoviePlaying() {
- if (g_smush->isPlaying()) {
- lua_pushnumber(1);
- } else {
- lua_pushnil();
- }
+ pushbool(g_smush->isPlaying());
}
static void StopMovie() {
@@ -1058,7 +1042,7 @@
}
static void PauseMovie() {
- g_smush->pause(lua_isnil(lua_getparam(1)));
+ g_smush->pause(lua_isnil(lua_getparam(1)) != 0);
}
// Stub function for builtin functions not yet implemented
More information about the Scummvm-git-logs
mailing list