mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Working version before block send priorization update
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user