mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Simplified the code of string_to_case function
Minor edits to some code and documents.
This commit is contained in:
@@ -220,7 +220,7 @@
|
||||
// fake perks/traits add mode flags
|
||||
#define ADD_PERK_MODE_TRAIT (1) // add to the player's traits
|
||||
#define ADD_PERK_MODE_PERK (2) // add to the player's perks
|
||||
#define ADD_PERK_MODE_REMOVE (4) // remove from the list of selectable perks
|
||||
#define ADD_PERK_MODE_REMOVE (4) // remove from the list of selectable perks (after added to the player)
|
||||
|
||||
// sfall_funcX macros
|
||||
#define add_global_timer_event(time, fixedParam) sfall_func2("add_g_timer_event", time, fixedParam)
|
||||
|
||||
@@ -606,6 +606,7 @@ optional arguments:
|
||||
> string sfall_func2("string_to_case", string text, int toCase)
|
||||
- converts all letters in the given string to the specified case
|
||||
- toCase: 0 - lowercase, 1 - uppercase
|
||||
- NOTE: this function works only for English letters of A-Z/a-z
|
||||
|
||||
------------------------
|
||||
------ MORE INFO -------
|
||||
|
||||
Reference in New Issue
Block a user