Created
August 30, 2013 05:00
-
-
Save Radnen/6386456 to your computer and use it in GitHub Desktop.
A fix for Sphere games that crash when using GetPersonList.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _GPL = GetPersonList; | |
GetPersonList = function() { | |
if (GetPersonList.updated) { | |
GetPersonList.list = _GPL(); | |
GetPersonList.updated = false; | |
} | |
return GetPersonList.list; | |
} | |
GetPersonList.updated = true; | |
var _DestroyPerson = DestroyPerson; | |
DestroyPerson = function(name) | |
{ | |
GetPersonList.updated = true; | |
_DestroyPerson(name); | |
} | |
var _CreatePerson = CreatePerson; | |
CreatePerson = function(name, ss, die) { | |
GetPersonList.updated = true; | |
_CreatePerson(name, ss, die); | |
} | |
var _ChangeMap = ChangeMap; | |
ChangeMap = function(name) { | |
GetPersonList.updated = true; | |
_ChangeMap(name); | |
} | |
var _MapEngine = MapEngine; | |
MapEngine = function(name, fps) { | |
GetPersonList.updated = true; | |
_MapEngine(name, fps); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment