1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

- fix for #95 and #602

- implemented animation for new town buildings
This commit is contained in:
Ivan Savenko
2011-03-22 13:19:07 +00:00
parent a09a54ba2f
commit c6f1d87ede
10 changed files with 764 additions and 634 deletions

View File

@ -224,8 +224,8 @@ int main(int argc, char** argv)
}
//Set environment vars to make window centered. Sometimes work, sometimes not. :/
putenv("SDL_VIDEO_WINDOW_POS");
putenv("SDL_VIDEO_CENTERED=1");
putenv((char*)"SDL_VIDEO_WINDOW_POS");
putenv((char*)"SDL_VIDEO_CENTERED=1");
timeHandler total, pomtime;
std::cout.flags(std::ios::unitbuf);
@ -482,6 +482,10 @@ void processCommand(const std::string &message)
if(const CArtifactInstance *a = h->getArt(id2))
tlog4 << a->nodeName();
}
else if (what == "anim" )
{
CAnimation::getAnimInfo();
}
}
else if(client && client->serv && client->serv->connected) //send to server
{