mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Working version before block send priorization update
This commit is contained in:
parent
4e249fb3fb
commit
24c4b7c68d
17 changed files with 716 additions and 200 deletions
|
@ -603,5 +603,15 @@ inline bool is_yes(std::string s)
|
|||
return false;
|
||||
}
|
||||
|
||||
inline s32 stoi(std::string s, s32 min, s32 max)
|
||||
{
|
||||
s32 i = atoi(s.c_str());
|
||||
if(i < min)
|
||||
i = min;
|
||||
if(i > max)
|
||||
i = max;
|
||||
return i;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue