Fix nohit :)

master
Maksim Gamarnik 2017-03-11 22:23:51 +02:00
parent 820fdb83d1
commit 5fc410ce58
1 changed files with 1 additions and 1 deletions

View File

@ -4114,7 +4114,7 @@ void Game::handlePointingAtObject(GameRunData *runData,
const ItemDefinition &playeritem_def =
playeritem.getDefinition(itemdef_manager);
bool nohit_enabled = ((ItemGroupList) playeritem_def.groups)["attached_node"] != 0;
bool nohit_enabled = ((ItemGroupList) playeritem_def.groups)["nohit"] != 0;
if (input->getLeftState() && !nohit_enabled) {
bool do_punch = false;