projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix tiles being 1 pixel off their correct position
[supertux.git]
/
src
/
physic.cpp
diff --git
a/src/physic.cpp
b/src/physic.cpp
index
3b90c6e
..
aecc01e
100644
(file)
--- a/
src/physic.cpp
+++ b/
src/physic.cpp
@@
-46,7
+46,7
@@
Physic::reset()
void
Physic::set_velocity_x(float nvx)
{
- vx =
-
nvx;
+ vx = nvx;
}
void
@@
-58,8
+58,8
@@
Physic::set_velocity_y(float nvy)
void
Physic::set_velocity(float nvx, float nvy)
{
-
vx = nvx;
-
vy = -nvy;
+ vx = nvx;
+ vy = -nvy;
}
void Physic::inverse_velocity_x()