* Finish rocket launcher block

This commit is contained in:
iProgramInCpp
2023-12-31 15:06:05 +02:00
parent de020470f4
commit 90bd2935d4
5 changed files with 41 additions and 16 deletions

View File

@@ -31,7 +31,7 @@ bool RocketItem::useOn(ItemInstance* inst, Player* player, Level* level, int x,
case DIR_XPOS: x++; break;
}
level->addEntity(new Rocket(level, float(x), float(y), float(z)));
level->addEntity(new Rocket(level, float(x) + 0.5f, float(y) + 0.5f, float(z) + 0.5f));
inst->m_amount--;
return true;