I'm just not good with arrays so I havent figured really how to get the it.pos to store
but I was thinking that would it be wise instead to do a check if (g_player->m_allimprovements) to see if the improvement already exists?
create improvement inserts the improvement into the m_allimps array. So i'm thinking that first it checks if it already exists. if it doesn't than it checks the position.
Of course this is based on an assumption that the for loop with it.pos repeats each time and thats why i got multiple wonders instead of it.pos being all the positions at once.
well i'll give it a try unless you guys see a flaw in my logic and stop me (I dont have access to the game and my compiler at work)
but I was thinking that would it be wise instead to do a check if (g_player->m_allimprovements) to see if the improvement already exists?
create improvement inserts the improvement into the m_allimps array. So i'm thinking that first it checks if it already exists. if it doesn't than it checks the position.
Of course this is based on an assumption that the for loop with it.pos repeats each time and thats why i got multiple wonders instead of it.pos being all the positions at once.
well i'll give it a try unless you guys see a flaw in my logic and stop me (I dont have access to the game and my compiler at work)
Comment