diff options
Diffstat (limited to 'src/gamehandler.cpp')
-rw-r--r-- | src/gamehandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gamehandler.cpp b/src/gamehandler.cpp index 968325a7..e2a37e32 100644 --- a/src/gamehandler.cpp +++ b/src/gamehandler.cpp @@ -219,6 +219,15 @@ void GameHandler::processMessage(NetComputer *comp, MessageIn &message) ERRMSG_OK : ERRMSG_FAILURE); } break; + case PGMSG_ATTACK: + { + LOG_DEBUG ( "Player " << + computer.getCharacter()->getPublicID() << + " attacks", + 0); + computer.getCharacter()->setAttacking(true); + } break; + default: LOG_WARN("Invalid message type", 0); result.writeShort(XXMSG_INVALID); |