Fix nohit :)
This commit is contained in:
parent
820fdb83d1
commit
5fc410ce58
@ -4114,7 +4114,7 @@ void Game::handlePointingAtObject(GameRunData *runData,
|
|||||||
|
|
||||||
const ItemDefinition &playeritem_def =
|
const ItemDefinition &playeritem_def =
|
||||||
playeritem.getDefinition(itemdef_manager);
|
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) {
|
if (input->getLeftState() && !nohit_enabled) {
|
||||||
bool do_punch = false;
|
bool do_punch = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user