Permalink
Browse files

Deferred initial gamemode reset a bit

  • Loading branch information...
1 parent 8061436 commit ba5b3f5d62ee4b80a80d9ba1fd48522231adf269 @teozkr committed Sep 4, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 server.cs
View
@@ -338,12 +338,16 @@
function MiniGameSO::onAdd(%this) {
%ret = parent::onAdd(%this);
- if (%this.getID() == $DefaultMinigame.getID())
- %this.schedule(0, reset, 0);
+ %this.schedule(1000, resetDM);
return %ret;
}
+ function MiniGameSO::resetDM(%this) {
+ if (%this.getID() == $DefaultMinigame.getID())
+ %this.reset(0);
+ }
+
function MiniGameSO::reset(%this, %client) {
if (%this.getID() != $DefaultMinigame.getID())
return parent::reset(%this, %client);

0 comments on commit ba5b3f5

Please sign in to comment.