From f1e9bf6227d03d260d34dfe0234b7acdf56c8c19 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Wed, 18 May 2005 21:19:56 +0000 Subject: [PATCH] Fixed warnings This was SVN commit r2319. --- source/ps/Interact.cpp | 2 +- source/ps/Network/NetMessage.h | 2 +- source/simulation/EntityHandles.cpp | 4 ++-- source/simulation/EntityHandles.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/ps/Interact.cpp b/source/ps/Interact.cpp index 3b27fbd8fc..fba26d1ea8 100755 --- a/source/ps/Interact.cpp +++ b/source/ps/Interact.cpp @@ -789,7 +789,7 @@ int interactInputHandler( const SDL_Event* ev ) static u8 clicks[5] = {0, 0, 0, 0, 0}; static u16 button_down_x, button_down_y; - static float button_down_time; + static double button_down_time; static bool button_down = false; if (customSelectionMode && ev->type != SDL_MOUSEBUTTONUP) diff --git a/source/ps/Network/NetMessage.h b/source/ps/Network/NetMessage.h index 983e245cce..7099a51c7f 100755 --- a/source/ps/Network/NetMessage.h +++ b/source/ps/Network/NetMessage.h @@ -12,7 +12,7 @@ #undef ALLNETMSGS_DONT_CREATE_NMTS class CCommand; -class CEntityList; +struct CEntityList; /** * The base class for network messages diff --git a/source/simulation/EntityHandles.cpp b/source/simulation/EntityHandles.cpp index 6d50da98dc..f968cd154f 100755 --- a/source/simulation/EntityHandles.cpp +++ b/source/simulation/EntityHandles.cpp @@ -132,12 +132,12 @@ HEntity::operator CStr() const uint CEntityList::GetSerializedLength() const { - return 2*size(); + return (uint)(2*size()); } u8 *CEntityList::Serialize(u8 *buffer) const { - for (int i=0;i