projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[cppcheck] Part 2: Some further style fixes etc.
[supertux.git]
/
src
/
supertux
/
sector.cpp
diff --git
a/src/supertux/sector.cpp
b/src/supertux/sector.cpp
index
3e0c44e
..
73d3cce
100644
(file)
--- a/
src/supertux/sector.cpp
+++ b/
src/supertux/sector.cpp
@@
-228,7
+228,7
@@
Sector::parse(const Reader& sector)
update_game_objects();
update_game_objects();
- if(solid_tilemaps.
size() < 1
) { log_warning << "sector '" << name << "' does not contain a solid tile layer." << std::endl; }
+ if(solid_tilemaps.
empty()
) { log_warning << "sector '" << name << "' does not contain a solid tile layer." << std::endl; }
fix_old_tiles();
if(!camera) {
fix_old_tiles();
if(!camera) {
@@
-393,7
+393,7
@@
Sector::parse_old_format(const Reader& reader)
update_game_objects();
update_game_objects();
- if(solid_tilemaps.
size() < 1
) { log_warning << "sector '" << name << "' does not contain a solid tile layer." << std::endl; }
+ if(solid_tilemaps.
empty()
) { log_warning << "sector '" << name << "' does not contain a solid tile layer." << std::endl; }
fix_old_tiles();
update_game_objects();
fix_old_tiles();
update_game_objects();