aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/run_state.js
diff options
context:
space:
mode:
authorPushkar Joshi2012-02-02 11:28:45 -0800
committerPushkar Joshi2012-02-02 11:28:45 -0800
commitacc500d1f1c76f4e7c93ae1cfea8d925ca95e7b9 (patch)
tree877f8ca734228c11050b037ce82fc0d1e1303193 /js/helper-classes/RDGE/src/core/script/run_state.js
parent4d4de64472603426a73b26cc98ba8206190949b8 (diff)
parent4222db97e353fb65fab787ba5927d16d9fa4e1f7 (diff)
downloadninja-acc500d1f1c76f4e7c93ae1cfea8d925ca95e7b9.tar.gz
Merge branch 'working' of c:/Code/github/emueller/ninja-internal/ into pentool
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/run_state.js')
-rw-r--r--js/helper-classes/RDGE/src/core/script/run_state.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/run_state.js b/js/helper-classes/RDGE/src/core/script/run_state.js
index ad56d9ea..acdb6797 100644
--- a/js/helper-classes/RDGE/src/core/script/run_state.js
+++ b/js/helper-classes/RDGE/src/core/script/run_state.js
@@ -30,6 +30,9 @@ RunState.prototype.Init = function()
30 this.userRunState.init(); 30 this.userRunState.init();
31 } 31 }
32 32
33 if (this.hasUserState && this.userRunState && this.userRunState.onRunState)
34 this.userRunState.onRunState();
35
33 36
34 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 37 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
35 38
@@ -94,6 +97,11 @@ RunState.prototype.ReInit = function()
94 if(!this.initialized) 97 if(!this.initialized)
95 { 98 {
96 this.Init(); 99 this.Init();
100 }
101 else
102 {
103 if (this.hasUserState && this.userRunState && this.userRunState.onRunState)
104 this.userRunState.onRunState();
97 } 105 }
98} 106}
99 107
@@ -117,7 +125,7 @@ RunState.prototype.Draw = function ()
117 var width = this.renderer.vpWidth; 125 var width = this.renderer.vpWidth;
118 var height = this.renderer.vpHeight; 126 var height = this.renderer.vpHeight;
119 127
120 this.renderer._clear(); 128// this.renderer._clear();
121 129
122 this.userRunState.draw(); 130 this.userRunState.draw();
123 131