diff options
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.js | 10 |
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 | ||