diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/MiscState.h b/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/MiscState.h index cf46c69c03..b1f6672803 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/MiscState.h +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/Common/MiscState.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2009 Wildfire Games. +/* Copyright (C) 2012 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -22,7 +22,7 @@ namespace AtlasMessage { - typedef size_t ObjectID; + typedef unsigned int ObjectID; } extern wxString g_SelectedTexture; diff --git a/source/tools/atlas/GameInterface/Handlers/ObjectHandlers.cpp b/source/tools/atlas/GameInterface/Handlers/ObjectHandlers.cpp index 1eb46be19c..a55c7be966 100644 --- a/source/tools/atlas/GameInterface/Handlers/ObjectHandlers.cpp +++ b/source/tools/atlas/GameInterface/Handlers/ObjectHandlers.cpp @@ -94,7 +94,7 @@ QUERYHANDLER(GetObjectsList) } -static std::vector g_Selection; +static std::vector g_Selection; MESSAGEHANDLER(SetSelectionPreview) { @@ -427,7 +427,7 @@ QUERYHANDLER(PickObject) // Normally this function would be called with a player ID to check LOS, // but in Atlas the entire map is revealed, so just pass INVALID_PLAYER - std::vector ents = EntitySelection::PickEntitiesAtPoint(*g_Game->GetSimulation2(), *g_Game->GetView()->GetCamera(), x, y, INVALID_PLAYER, msg->selectActors); + std::vector ents = EntitySelection::PickEntitiesAtPoint(*g_Game->GetSimulation2(), *g_Game->GetView()->GetCamera(), x, y, INVALID_PLAYER, msg->selectActors); // Multiple entities may have been picked, but they are sorted by distance, // so only take the first one @@ -488,12 +488,12 @@ QUERYHANDLER(PickSimilarObjects) BEGIN_COMMAND(MoveObjects) { // Mapping from object to position - typedef std::map ObjectPositionMap; + typedef std::map ObjectPositionMap; ObjectPositionMap m_PosOld, m_PosNew; void Do() { - std::vector ids = *msg->ids; + std::vector ids = *msg->ids; // All selected objects move relative to a pivot object, // so get its position and whether it's floating @@ -654,7 +654,7 @@ BEGIN_COMMAND(DeleteObjects) CmpPtr cmpTemplateManager(sim, SYSTEM_ENTITY); ENSURE(cmpTemplateManager); - std::vector ids = *msg->ids; + std::vector ids = *msg->ids; for (size_t i = 0; i < ids.size(); ++i) { OldObject obj; @@ -712,7 +712,7 @@ END_COMMAND(DeleteObjects) QUERYHANDLER(GetPlayerObjects) { - std::vector ids; + std::vector ids; player_id_t playerID = msg->player; const CSimulation2::InterfaceListUnordered& cmps = g_Game->GetSimulation2()->GetEntitiesWithInterfaceUnordered(IID_Ownership); diff --git a/source/tools/atlas/GameInterface/SharedTypes.h b/source/tools/atlas/GameInterface/SharedTypes.h index 1d5c22c732..ec1fe107b0 100644 --- a/source/tools/atlas/GameInterface/SharedTypes.h +++ b/source/tools/atlas/GameInterface/SharedTypes.h @@ -83,7 +83,7 @@ struct Colour SHAREABLE_STRUCT(Colour); -typedef size_t ObjectID; +typedef unsigned int ObjectID; inline bool ObjectIDIsValid(ObjectID id) { return (id != 0); }