projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't adjust aspect-ratio in non-fullscreen modes, removed a few unneeded headers
[supertux.git]
/
src
/
physic.cpp
diff --git
a/src/physic.cpp
b/src/physic.cpp
index
d7993cd
..
5da55a3
100644
(file)
--- a/
src/physic.cpp
+++ b/
src/physic.cpp
@@
-23,7
+23,7
@@
#include "physic.hpp"
Physic::Physic()
#include "physic.hpp"
Physic::Physic()
- : ax(0), ay(0), vx(0), vy(0), gravity_enabled_flag(true), gravity(1000)
+ : ax(0), ay(0), vx(0), vy(0), gravity_enabled_flag(true), gravity(10
* 1
00)
{
}
{
}
@@
-144,13
+144,13
@@
Physic::gravity_enabled() const
void
Physic::set_gravity(float gravity)
{
void
Physic::set_gravity(float gravity)
{
- this->gravity = gravity;
+ this->gravity = gravity
* 100
;
}
float
Physic::get_gravity() const
{
}
float
Physic::get_gravity() const
{
- return gravity;
+ return gravity
/ 100
;
}
Vector
}
Vector