windows does not know uint out of the box
This commit is contained in:
parent
082f3472ee
commit
a51ae28018
|
@ -35,8 +35,8 @@ using namespace Shared::Util;
|
||||||
|
|
||||||
namespace Glest{ namespace Game{
|
namespace Glest{ namespace Game{
|
||||||
|
|
||||||
const uint CHANGE_COMMAND_SPEED = 325;
|
const int CHANGE_COMMAND_SPEED = 325;
|
||||||
const uint MIN_FRAMECOUNT_CHANGE_COMMAND_SPEED = 160;
|
const int MIN_FRAMECOUNT_CHANGE_COMMAND_SPEED = 160;
|
||||||
|
|
||||||
//Mutex Unit::mutexDeletedUnits;
|
//Mutex Unit::mutexDeletedUnits;
|
||||||
//map<void *,bool> Unit::deletedUnits;
|
//map<void *,bool> Unit::deletedUnits;
|
||||||
|
|
|
@ -597,7 +597,7 @@ void UnitType::loaddd(int id,const string &dir, const TechTree *techTree,
|
||||||
if(parametersNode->hasChild("resources-death")) {
|
if(parametersNode->hasChild("resources-death")) {
|
||||||
const XmlNode *deathResourcesNode= parametersNode->getChild("resources-death");
|
const XmlNode *deathResourcesNode= parametersNode->getChild("resources-death");
|
||||||
|
|
||||||
for(uint i=0; i < deathResourcesNode->getChildCount(); ++i){
|
for(int i=0; i < deathResourcesNode->getChildCount(); ++i){
|
||||||
const XmlNode *resourceNode= deathResourcesNode->getChild("resource", i);
|
const XmlNode *resourceNode= deathResourcesNode->getChild("resource", i);
|
||||||
string name= resourceNode->getAttribute("name")->getRestrictedValue();
|
string name= resourceNode->getAttribute("name")->getRestrictedValue();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue