From 096887b4d91e6dd7ab3b33d8d0c3c7562e12ecd7 Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Thu, 13 Feb 2020 19:56:50 +0200 Subject: [PATCH] introduce 7.90 writeable documents written date --- src/protocolgame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/protocolgame.cpp b/src/protocolgame.cpp index 7d1d50e..42c71f8 100644 --- a/src/protocolgame.cpp +++ b/src/protocolgame.cpp @@ -1773,11 +1773,12 @@ void ProtocolGame::sendTextWindow(uint32_t windowTextId, Item* item, uint16_t ma msg.add(0x00); } - if (player->getOperatingSystem() >= CLIENTOS_OTCLIENT_LINUX) { + if (g_game.getClientVersion() >= CLIENT_VERSION_790) { time_t writtenDate = item->getDate(); if (writtenDate != 0) { msg.addString(formatDateShort(writtenDate)); - } else { + } + else { msg.add(0x00); } }