summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-18 18:40:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-18 18:40:59 +0300
commit31cce4c22b369148f77d7092903af9462d8151c8 (patch)
treebd11e598db5ff6e17d3f0b283c44e333ac37d696 /src/net/ea
parente6afa441a57718205c1f62bcbc0a5443fd513aa3 (diff)
downloadmv-31cce4c22b369148f77d7092903af9462d8151c8.tar.gz
mv-31cce4c22b369148f77d7092903af9462d8151c8.tar.bz2
mv-31cce4c22b369148f77d7092903af9462d8151c8.tar.xz
mv-31cce4c22b369148f77d7092903af9462d8151c8.zip
Fix code style.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/inventoryhandler.cpp5
-rw-r--r--src/net/ea/inventoryitem.h8
2 files changed, 11 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index 2b2d1cc9e..b7c827a4d 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -266,11 +266,12 @@ void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg)
if (mDebugInventory)
{
- logger->log("Index: %d, ID: %d, Type: %d, Identified: %d, "
+ logger->log("Index: %d, ID: %d, Type: %d, Identified: %u, "
"Qty: %d, Cards: %d, %d, %d, %d, Refine: %u",
index, itemId, itemType,
static_cast<unsigned int>(identified), amount,
- cards[0], cards[1], cards[2], cards[3], refine);
+ cards[0], cards[1], cards[2], cards[3],
+ static_cast<unsigned int>(refine));
}
if (serverVersion < 1 && identified > 1U)
diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h
index f46ff48be..0f1e372ee 100644
--- a/src/net/ea/inventoryitem.h
+++ b/src/net/ea/inventoryitem.h
@@ -23,6 +23,14 @@
#ifndef NET_EA_INVENTORYITEM_H
#define NET_EA_INVENTORYITEM_H
+#if defined(__GXX_EXPERIMENTAL_CXX0X__)
+#include <cstdint>
+#else
+#include <stdint.h>
+#endif
+
+#include "localconsts.h"
+
namespace Ea
{