Simplified the code of travel markers and string_to_case function

Added new addrs to CheckAddress.cpp.

Minor edits to some code and documents.
This commit is contained in:
NovaRain
2020-01-17 21:53:41 +08:00
parent 201fa1da0c
commit 160a5b6053
8 changed files with 44 additions and 59 deletions
+1 -1
View File
@@ -247,7 +247,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_extra_msg_file(name) sfall_func1("add_extra_msg_file", name)
@@ -700,6 +700,7 @@ optional argument:
> 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 -------