Fixed warnings

This was SVN commit r2319.
This commit is contained in:
Ykkrosh 2005-05-18 21:19:56 +00:00
parent 3a255148dc
commit f1e9bf6227
4 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -12,7 +12,7 @@
#undef ALLNETMSGS_DONT_CREATE_NMTS
class CCommand;
class CEntityList;
struct CEntityList;
/**
* The base class for network messages

View File

@ -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<size();i++)
for (size_t i=0;i<size();i++)
Serialize_int_2(buffer, at(i).m_handle);
Serialize_int_2(buffer, back().m_handle | HANDLE_SENTINEL_BIT);
return buffer;

View File

@ -33,7 +33,7 @@
class CEntity;
class CEntityManager;
class CEntityList;
struct CEntityList;
class CStr8;
class CHandle
@ -47,7 +47,7 @@ public:
class HEntity
{
friend class CEntityManager;
friend class CEntityList;
friend struct CEntityList;
u16 m_handle;
private:
void addRef();