projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1d0eb5
)
Made conversion Vector -> Sizef explicit, just to be on the safe side
author
Ingo Ruhnke
<grumbel@gmail.com>
Sun, 17 Aug 2014 01:45:44 +0000
(
03:45
+0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Sun, 17 Aug 2014 01:45:44 +0000
(
03:45
+0200)
src/math/sizef.hpp
patch
|
blob
|
history
diff --git
a/src/math/sizef.hpp
b/src/math/sizef.hpp
index
893d0d4
..
02866d4
100644
(file)
--- a/
src/math/sizef.hpp
+++ b/
src/math/sizef.hpp
@@
-31,7
+31,7
@@
public:
height(0.0f)
{}
- Sizef(const Vector& v) :
+
explicit
Sizef(const Vector& v) :
width(v.x),
height(v.y)
{}