projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworked the inventory move handling code, hopefully fixed more problems than caused
[oweals/minetest.git]
/
src
/
settings.h
diff --git
a/src/settings.h
b/src/settings.h
index af010fe06f48559f1e30c6a6bf1c2a0d99cd64b4..4bc22eaa1e08f47682108872b272a7790dc246d4 100644
(file)
--- a/
src/settings.h
+++ b/
src/settings.h
@@
-78,8
+78,8
@@
public:
std::string trimmedline = trim(line);
std::string trimmedline = trim(line);
- // Ignore comments
- if(trimmedline[0] == '#')
+ // Ignore
empty lines and
comments
+ if(trimmedline
.size() == 0 || trimmedline
[0] == '#')
return true;
//infostream<<"trimmedline=\""<<trimmedline<<"\""<<std::endl;
return true;
//infostream<<"trimmedline=\""<<trimmedline<<"\""<<std::endl;
@@
-189,8
+189,8
@@
public:
if(is.eof() == false)
line_end = "\n";
if(is.eof() == false)
line_end = "\n";
- // Ignore comments
- if(trimmedline[0] == '#')
+ // Ignore
empty lines and
comments
+ if(trimmedline
.size() == 0 || trimmedline
[0] == '#')
{
dst.push_back(line+line_end);
return true;
{
dst.push_back(line+line_end);
return true;