Browse Source

[controller] Fix player attack each other in town

This would render the player invisable and damage equipment
pull/514/head
Anders Jenbo 6 years ago
parent
commit
4269f71dc2
  1. 2
      SourceX/controls/plrctrls.cpp

2
SourceX/controls/plrctrls.cpp

@ -425,7 +425,7 @@ void Interact()
} else {
NetSendCmdParam1(true, CMD_RATTACKID, pcursmonst);
}
} else if (pcursplr != -1 && !FriendlyMode) {
} else if (leveltype != DTYPE_TOWN && pcursplr != -1 && !FriendlyMode) {
NetSendCmdParam1(true, plr[myplr]._pwtype == WT_RANGED ? CMD_RATTACKPID : CMD_ATTACKPID, pcursplr);
}
}

Loading…
Cancel
Save