forked from 0ad/0ad
Fixed warnings
This was SVN commit r2319.
This commit is contained in:
parent
3a255148dc
commit
f1e9bf6227
@ -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)
|
||||
|
@ -12,7 +12,7 @@
|
||||
#undef ALLNETMSGS_DONT_CREATE_NMTS
|
||||
|
||||
class CCommand;
|
||||
class CEntityList;
|
||||
struct CEntityList;
|
||||
|
||||
/**
|
||||
* The base class for network messages
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user