MantisBT - VCMI
View Issue Details
0001978VCMISound, music, videospublic2014-11-24 16:072022-12-17 15:05
SXX 
Ivan 
normalminoralways
resolvedfixed 
0.97 
1.next 
0001978: Music should not restart or pause if player changed to other town of same type
When on town screen player click on other town in right bottom list music theme playback restart even if this town have exactly same type as previous one.

It's looks like simple change that would only require code like this in "/client/windows/CCastleInterface.cpp:910"
	if (!from || from->subID != town->subID)
        CCS->musich->playMusic(town->town->clientInfo.musicTheme, true);

Though I still need to find how to prevent music change to terrain theme while game changing between towns.
  - Start on map where you own 3 towns of 2 different types.
  - Now go into town screen.
  - Try to change between towns of same type.
No tags attached.
related to 0001634closed Ivan Music should not restart in some cases 
has duplicate 0002207resolved Ivan Music stops on town switching 
Issue History
2014-11-24 16:07SXXNew Issue
2014-11-24 16:15SXXSummaryMusic should not restart if player changed to other town of same type => Music should not restart or pause if player changed to other town of same type
2014-11-24 16:15SXXRelationship addedrelated to 0001634
2014-11-24 16:39SXXNote Added: 0005162
2014-11-24 16:40SXXNote Edited: 0005162bug_revision_view_page.php?bugnote_id=5162#r2728
2014-11-24 16:40SXXNote Edited: 0005162bug_revision_view_page.php?bugnote_id=5162#r2729
2015-12-14 09:06SXXRelationship addedhas duplicate 0002207
2022-12-17 15:05IvanNote Added: 0008394
2022-12-17 15:05IvanStatusnew => resolved
2022-12-17 15:05IvanFixed in Version => 1.next
2022-12-17 15:05IvanResolutionopen => fixed
2022-12-17 15:05IvanAssigned To => Ivan

Notes
(0005162)
SXX   
2014-11-24 16:39   
(edited on: 2014-11-24 16:40)
Also just want to clarify that this task is related to 0001634 and I seen it before submit it so it's not duplicate.

Original game have two different behaviours when you switch towns:
  - If towns have have different type volume going lower and only then new theme starts.
  - If towns are same type there is no pause of any kind at all that make me think it's handled different way.

It's might be also easier to implement this than what explained in 0001634.

(0008394)
Ivan   
2022-12-17 15:05   
Already fixed