1
0
forked from 0ad/0ad

More uint/size_t fixes

This was SVN commit r6116.
This commit is contained in:
Simon Brenner 2008-06-26 07:48:42 +00:00
parent f41bd37c81
commit 010cbdd283
2 changed files with 3 additions and 3 deletions

View File

@ -928,14 +928,14 @@ InReaction CGameView::HandleEvent(const SDL_Event_* ev)
}
bool CGameViewImpl::JSI_StartCustomSelection(
JSContext* UNUSED(context), size_t UNUSED(argc), jsval* UNUSED(argv))
JSContext* UNUSED(context), uintN UNUSED(argc), jsval* UNUSED(argv))
{
StartCustomSelection();
return true;
}
bool CGameViewImpl::JSI_EndCustomSelection(
JSContext* UNUSED(context), size_t UNUSED(argc), jsval* UNUSED(argv))
JSContext* UNUSED(context), uintN UNUSED(argc), jsval* UNUSED(argv))
{
ResetInteraction();
return true;

View File

@ -302,7 +302,7 @@ void CGameAttributes::OnNumSlotsUpdate(CSynchedJSObjectBase *owner)
// Clamp to a preset upper bound.
CConfigValue *val=g_ConfigDB.GetValue(CFG_MOD, "max_players");
size_t maxPlayers=PS_MAX_PLAYERS;
uint maxPlayers=PS_MAX_PLAYERS;
if (val)
val->GetUnsignedInt(maxPlayers);
if (pInstance->m_NumSlots > maxPlayers)