]> git.mxchange.org Git - quix0rs-blobwars.git/commit
Fix throwing grenades from moving platforms.
authorGuus Sliepen <guus@debian.org>
Sun, 9 Aug 2015 16:28:26 +0000 (18:28 +0200)
committerGuus Sliepen <guus@debian.org>
Sun, 9 Aug 2015 16:28:26 +0000 (18:28 +0200)
commit128d4058a4e0d37b7bef394ccde7277391e4ae0e
tree687bd1c76a53894ce83570368c19f3dd5013ec31
parent02cf9ac96c7ad8ba47b6ef7c5584b46656f14b8d
Fix throwing grenades from moving platforms.

The train and obstacle collision code made a distinction between
horizontally moving entities (which covers bullets and lasers), and
vertically moving entities (falling items?), but didn't handle
diagonally moving entities correctly, like grenades.
src/bullets.cpp
src/defs.h
src/entities.cpp
src/obstacles.cpp
src/trains.cpp