projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e29f37b
)
Made fish jump again
author
Christoph Sommer
<mail@christoph-sommer.de>
Mon, 22 May 2006 22:50:01 +0000
(22:50 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Mon, 22 May 2006 22:50:01 +0000
(22:50 +0000)
SVN-Revision: 3568
src/badguy/fish.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/fish.cpp
b/src/badguy/fish.cpp
index
ebd14c3
..
41af724
100644
(file)
--- a/
src/badguy/fish.cpp
+++ b/
src/badguy/fish.cpp
@@
-22,6
+22,7
@@
#include "fish.hpp"
#include "tile.hpp"
#include "object/tilemap.hpp"
+#include "log.hpp"
static const float FISH_JUMP_POWER = 600;
static const float FISH_WAIT_TIME = 1;
@@
-83,7
+84,7
@@
Fish::hit(const CollisionHit& chit)
void
Fish::collision_tile(uint32_t tile_attributes)
{
- if
(tile_attributes & Tile::WATER
) {
+ if
((tile_attributes & Tile::WATER) && (physic.get_velocity_y() <= 0)
) {
start_waiting();
movement = Vector(0, 0);
}