diff options
author | Melanie Thielker | 2008-09-13 16:16:08 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-13 16:16:08 +0000 |
commit | dccdeb57bbda32f00c10783a11f5746d460485af (patch) | |
tree | d7e5775b8aa1ee2d46444214401ca04a094fba32 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Provide a GetApi method on the IScriptEngine to get a named API reference (diff) | |
download | opensim-SC_OLD-dccdeb57bbda32f00c10783a11f5746d460485af.zip opensim-SC_OLD-dccdeb57bbda32f00c10783a11f5746d460485af.tar.gz opensim-SC_OLD-dccdeb57bbda32f00c10783a11f5746d460485af.tar.bz2 opensim-SC_OLD-dccdeb57bbda32f00c10783a11f5746d460485af.tar.xz |
Fix some string to float casting nastiness. The "train script" now
works. Also makes llGetFreeMemory return the constant 16384.
LLGetFreeMemory is useless in SL, as it never goes up, only down.
So, the only thing it is used for, in practice, is to detect an imminent
stack/heap collision, a danger we don't have.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 4da1b3b..e013369 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -4597,8 +4597,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4597 | public LSL_Types.LSLInteger llGetFreeMemory() | 4597 | public LSL_Types.LSLInteger llGetFreeMemory() |
4598 | { | 4598 | { |
4599 | m_host.AddScriptLPS(1); | 4599 | m_host.AddScriptLPS(1); |
4600 | NotImplemented("llGetFreeMemory"); | 4600 | // NotImplemented("llGetFreeMemory"); |
4601 | return 0; | 4601 | // Make scripts desined for LSO happy |
4602 | return 16384; | ||
4602 | } | 4603 | } |
4603 | 4604 | ||
4604 | public LSL_Types.LSLString llGetRegionName() | 4605 | public LSL_Types.LSLString llGetRegionName() |