mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
vcmi: remove a bunch of duplicated showInfoDialog
These methods duplicated in almost every map object Just replace it by one such method
This commit is contained in:
@@ -383,8 +383,8 @@ void CGDwelling::heroAcceptsCreatures( const CGHeroInstance *h) const
|
||||
ow.id1 = id.getNum();
|
||||
ow.id2 = h->id.getNum();
|
||||
ow.window = (ID == Obj::CREATURE_GENERATOR1 || ID == Obj::REFUGEE_CAMP)
|
||||
? OpenWindow::RECRUITMENT_FIRST
|
||||
: OpenWindow::RECRUITMENT_ALL;
|
||||
? EOpenWindowMode::RECRUITMENT_FIRST
|
||||
: EOpenWindowMode::RECRUITMENT_ALL;
|
||||
cb->sendAndApply(&ow);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user