1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

- removed deprecated ffmpeg functions. Fixes #779

- removed hardcoded video name constants
This commit is contained in:
Ivan Savenko
2012-08-21 17:37:06 +00:00
parent 9e0c9b4f49
commit e79ac5f1d7
4 changed files with 84 additions and 50 deletions

View File

@ -418,7 +418,7 @@ CBattleResultWindow::CBattleResultWindow(const BattleResult &br, const SDL_Rect
}
CCS->musich->playMusic("Music/Win Battle", false);
CCS->videoh->open(VIDEO_WIN);
CCS->videoh->open("WIN3.BIK");
std::string str = CGI->generaltexth->allTexts[text];
const CGHeroInstance * ourHero = weAreAttacker? owner->attackingHeroInstance : owner->defendingHeroInstance;
@ -438,21 +438,21 @@ CBattleResultWindow::CBattleResultWindow(const BattleResult &br, const SDL_Rect
case 0: //normal victory
{
CCS->musich->playMusic("Music/LoseCombat", false);
CCS->videoh->open(VIDEO_LOSE_BATTLE_START);
CCS->videoh->open("LBSTART.BIK");
new CLabel(235, 235, FONT_SMALL, CENTER, Colors::Cornsilk, CGI->generaltexth->allTexts[311]);
break;
}
case 1: //flee
{
CCS->musich->playMusic("Music/Retreat Battle", false);
CCS->videoh->open(VIDEO_RETREAT_START);
CCS->videoh->open("RTSTART.BIK");
new CLabel(235, 235, FONT_SMALL, CENTER, Colors::Cornsilk, CGI->generaltexth->allTexts[310]);
break;
}
case 2: //surrender
{
CCS->musich->playMusic("Music/Surrender Battle", false);
CCS->videoh->open(VIDEO_SURRENDER);
CCS->videoh->open("SURRENDER.BIK");
new CLabel(235, 235, FONT_SMALL, CENTER, Colors::Cornsilk, CGI->generaltexth->allTexts[309]);
break;
}