summaryrefslogtreecommitdiff
path: root/src/testblock.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-07-11 00:43:33 +0200
committerTreeki <treeki@gmail.com>2011-07-11 00:43:33 +0200
commit350de563800bf0cb782a55098c37ae704b6a4e89 (patch)
tree333dcf511528c1289f94b33bc7357e43350db3a4 /src/testblock.cpp
parent8bc53ab0bf857abc43d81ed1f0e523e5967197a9 (diff)
downloadkamek-350de563800bf0cb782a55098c37ae704b6a4e89.tar.gz
kamek-350de563800bf0cb782a55098c37ae704b6a4e89.zip
fixed a bug in TestBlock and added the EventBlock
Diffstat (limited to '')
-rw-r--r--src/testblock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testblock.cpp b/src/testblock.cpp
index 93ba8ea..73f3adb 100644
--- a/src/testblock.cpp
+++ b/src/testblock.cpp
@@ -112,6 +112,8 @@ daEnTestBlock_c *daEnTestBlock_c::build() {
void daEnTestBlock_c::blockWasHit(bool isDown) {
OSReport("I'm a block, and I was hit.\n");
+ pos.y = initialY;
+
//This code makes the block unhittable
//physicsInfo.otherCallback1 = 0;
//physicsInfo.otherCallback2 = 0;