mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Various fixes and improvements, mostly for r1093
This commit is contained in:
@ -1545,9 +1545,20 @@ void CPlayerInterface::newObject( const CGObjectInstance * obj )
|
||||
}
|
||||
}
|
||||
|
||||
void CPlayerInterface::centerView (int3 pos)
|
||||
void CPlayerInterface::centerView (int3 pos, int focusTime)
|
||||
{
|
||||
LOCPLINT->adventureInt->centerOn (pos);
|
||||
if(focusTime)
|
||||
{
|
||||
bool activeAdv = (GH.topInt() == adventureInt && adventureInt->active);
|
||||
if(activeAdv)
|
||||
adventureInt->deactivate();
|
||||
|
||||
SDL_Delay(focusTime);
|
||||
|
||||
if(activeAdv)
|
||||
adventureInt->activate();
|
||||
}
|
||||
}
|
||||
|
||||
void CPlayerInterface::objectRemoved( const CGObjectInstance *obj )
|
||||
|
Reference in New Issue
Block a user