diff options
Diffstat (limited to 'linden/indra/lscript/lscript_library/lscript_library.cpp')
-rw-r--r-- | linden/indra/lscript/lscript_library/lscript_library.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/lscript/lscript_library/lscript_library.cpp b/linden/indra/lscript/lscript_library/lscript_library.cpp index e379192..a623a9a 100644 --- a/linden/indra/lscript/lscript_library/lscript_library.cpp +++ b/linden/indra/lscript/lscript_library/lscript_library.cpp | |||
@@ -156,7 +156,7 @@ void LLScriptLibrary::init() | |||
156 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetVel", "v", NULL, "vector llGetVel()\ngets the velocity")); | 156 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetVel", "v", NULL, "vector llGetVel()\ngets the velocity")); |
157 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetAccel", "v", NULL, "vector llGetAccel()\ngets the acceleration")); | 157 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetAccel", "v", NULL, "vector llGetAccel()\ngets the acceleration")); |
158 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetOmega", "v", NULL, "vector llGetOmega()\ngets the omega")); | 158 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetOmega", "v", NULL, "vector llGetOmega()\ngets the omega")); |
159 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTimeOfDay", "f", "", "float llGetTimeOfDay()\ngets the time in seconds since Second Life server midnight (or since server up-time; whichever is smaller)")); | 159 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTimeOfDay", "f", "", "float llGetTimeOfDay()\ngets the time in seconds since server midnight (or since server up-time; whichever is smaller)")); |
160 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetWallclock", "f", "", "float llGetWallclock()\ngets the time in seconds since midnight")); | 160 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetWallclock", "f", "", "float llGetWallclock()\ngets the time in seconds since midnight")); |
161 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTime", "f", NULL, "float llGetTime()\ngets the time in seconds since creation")); | 161 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetTime", "f", NULL, "float llGetTime()\ngets the time in seconds since creation")); |
162 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llResetTime", NULL, NULL, "llResetTime()\nsets the time to zero")); | 162 | addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llResetTime", NULL, NULL, "llResetTime()\nsets the time to zero")); |
@@ -591,7 +591,7 @@ LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_fun | |||
591 | char *mDesc_ = new char[512]; | 591 | char *mDesc_ = new char[512]; |
592 | if (mSleepTime) | 592 | if (mSleepTime) |
593 | { | 593 | { |
594 | snprintf( /* Flawfinder: ignore */ | 594 | ll_snprintf( /* Flawfinder: ignore */ |
595 | mDesc_, | 595 | mDesc_, |
596 | 512, | 596 | 512, |
597 | "%s\nSleeps script for %.1f seconds.", | 597 | "%s\nSleeps script for %.1f seconds.", |
@@ -652,7 +652,7 @@ void LLScriptLibData::print(std::ostream &s, BOOL b_prepend_comma) | |||
652 | s << mInteger; | 652 | s << mInteger; |
653 | break; | 653 | break; |
654 | case LST_FLOATINGPOINT: | 654 | case LST_FLOATINGPOINT: |
655 | snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */ | 655 | ll_snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */ |
656 | s << tmp; | 656 | s << tmp; |
657 | break; | 657 | break; |
658 | case LST_KEY: | 658 | case LST_KEY: |
@@ -662,12 +662,12 @@ void LLScriptLibData::print(std::ostream &s, BOOL b_prepend_comma) | |||
662 | s << mString; | 662 | s << mString; |
663 | break; | 663 | break; |
664 | case LST_VECTOR: | 664 | case LST_VECTOR: |
665 | snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */ | 665 | ll_snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */ |
666 | mVec.mV[VY], mVec.mV[VZ]); | 666 | mVec.mV[VY], mVec.mV[VZ]); |
667 | s << tmp; | 667 | s << tmp; |
668 | break; | 668 | break; |
669 | case LST_QUATERNION: | 669 | case LST_QUATERNION: |
670 | snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */ | 670 | ll_snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */ |
671 | mQuat.mQ[VZ], mQuat.mQ[VS]); | 671 | mQuat.mQ[VZ], mQuat.mQ[VS]); |
672 | s << tmp; | 672 | s << tmp; |
673 | break; | 673 | break; |
@@ -691,7 +691,7 @@ void LLScriptLibData::print_separator(std::ostream& ostr, BOOL b_prepend_sep, ch | |||
691 | ostr << mInteger; | 691 | ostr << mInteger; |
692 | break; | 692 | break; |
693 | case LST_FLOATINGPOINT: | 693 | case LST_FLOATINGPOINT: |
694 | snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */ | 694 | ll_snprintf(tmp, 1024, "%f", mFP); /* Flawfinder: ignore */ |
695 | ostr << tmp; | 695 | ostr << tmp; |
696 | break; | 696 | break; |
697 | case LST_KEY: | 697 | case LST_KEY: |
@@ -701,12 +701,12 @@ void LLScriptLibData::print_separator(std::ostream& ostr, BOOL b_prepend_sep, ch | |||
701 | ostr << mString; | 701 | ostr << mString; |
702 | break; | 702 | break; |
703 | case LST_VECTOR: | 703 | case LST_VECTOR: |
704 | snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */ | 704 | ll_snprintf(tmp, 1024, "<%f, %f, %f>", mVec.mV[VX], /* Flawfinder: ignore */ |
705 | mVec.mV[VY], mVec.mV[VZ]); | 705 | mVec.mV[VY], mVec.mV[VZ]); |
706 | ostr << tmp; | 706 | ostr << tmp; |
707 | break; | 707 | break; |
708 | case LST_QUATERNION: | 708 | case LST_QUATERNION: |
709 | snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */ | 709 | ll_snprintf(tmp, 1024, "<%f, %f, %f, %f>", mQuat.mQ[VX], mQuat.mQ[VY], /* Flawfinder: ignore */ |
710 | mQuat.mQ[VZ], mQuat.mQ[VS]); | 710 | mQuat.mQ[VZ], mQuat.mQ[VS]); |
711 | ostr << tmp; | 711 | ostr << tmp; |
712 | break; | 712 | break; |