projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5659434
)
Make camera clear error message if there's no error
author
ShadowNinja
<shadowninja@minetest.net>
Sat, 28 Mar 2015 02:20:10 +0000
(22:20 -0400)
committer
ShadowNinja
<shadowninja@minetest.net>
Sat, 28 Mar 2015 02:20:10 +0000
(22:20 -0400)
src/camera.cpp
patch
|
blob
|
history
diff --git
a/src/camera.cpp
b/src/camera.cpp
index 111a4b241dfb275484a4c90e0b945ffb2d97066c..0152f704112b63cbf6ca68c0589fa20428749b02 100644
(file)
--- a/
src/camera.cpp
+++ b/
src/camera.cpp
@@
-131,6
+131,8
@@
bool Camera::successfullyCreated(std::string &error_message)
error_message = "Failed to create the wielded item scene manager";
} else if (!m_wieldnode) {
error_message = "Failed to create the wielded item scene node";
+ } else {
+ error_message.clear();
}
return error_message.empty();
}