From 448d9076137fc5dde666a90820992a34a945cbf7 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 26 Feb 2009 22:22:22 +0100 Subject: Got rid of Sint{8,16,32} and Uint32 for being ID Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization. --- src/npc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/npc.h') diff --git a/src/npc.h b/src/npc.h index e1bf9737..137cd5f5 100644 --- a/src/npc.h +++ b/src/npc.h @@ -23,8 +23,6 @@ #ifndef NPC_H #define NPC_H -#include - #include "player.h" class Network; @@ -34,7 +32,7 @@ class Text; class NPC : public Player { public: - NPC(Uint32 id, Uint16 job, Map *map, Network *network); + NPC(int id, Uint16 job, Map *map, Network *network); ~NPC(); @@ -55,6 +53,6 @@ class NPC : public Player Text *mName; }; -extern Uint32 current_npc; +extern int current_npc; #endif -- cgit v1.2.3-70-g09d2