[Scummvm-cvs-logs] CVS: residual lua.cpp,1.101,1.102
Pawel Kolodziejski
aquadran at users.sourceforge.net
Fri Jan 14 14:26:09 CET 2005
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24167
Modified Files:
lua.cpp
Log Message:
forgot add before
Index: lua.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/lua.cpp,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- lua.cpp 14 Jan 2005 22:20:18 -0000 1.101
+++ lua.cpp 14 Jan 2005 22:25:38 -0000 1.102
@@ -1436,11 +1436,18 @@
}
static void SetAmbientLight() {
- int type = check_int(1);
- if (type != 0)
- warning("SetAmbientLight() Set ambient light to %d", type);
- else
- ;// 0 - seems turn off ambient light
+ int mode = check_int(1);
+ if (mode == 0) {
+ if (g_engine->currScene() != NULL) {
+ g_engine->currScene()->setLightEnableState(true);
+ }
+ } else if (mode == 1) {
+ if (g_engine->currScene() != NULL) {
+ g_engine->currScene()->setLightEnableState(false);
+ }
+ } else {
+ error("SetAmbientLight() Unknown param %d", mode);
+ }
}
static void EngineDisplay() {
More information about the Scummvm-git-logs
mailing list