aboutsummaryrefslogtreecommitdiff
path: root/src/client/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/main.cpp')
-rw-r--r--src/client/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/main.cpp b/src/client/main.cpp
index 236a3fe..949cd6b 100644
--- a/src/client/main.cpp
+++ b/src/client/main.cpp
@@ -164,6 +164,16 @@ int main(int argc, char *argv[]){
//UpdatePhysics(steps,UpdateElement);
//t1 = now;
driver->beginScene(true, true, background);
+
+ lua_getglobal(state,"GAME");
+ lua_getfield(state,-1,"draw");
+ if(!lua_isnil(state,-1)){
+ lua_call(state,0,0);
+ lua_pop(state,1);
+ }else{
+ lua_pop(state,2);
+ }
+
smgr->drawAll();
guienv->drawAll();
driver->endScene();