1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

crafting system!

This commit is contained in:
Perttu Ahola 2010-12-22 16:30:23 +02:00
parent 2e41a5e304
commit 3de176cc58
22 changed files with 703 additions and 143 deletions

View file

@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <string>
std::string trim(std::string str);
std::string trim(const std::string &str);
class Strfnd{
std::string tek;
@ -74,8 +74,9 @@ public:
}
};
inline std::string trim(std::string str)
inline std::string trim(const std::string &s)
{
std::string str = s;
while(
str.length()>0
&&