1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

- fixed terrain music restarting every tile

- field "contact" for mod.json schema
This commit is contained in:
Ivan Savenko 2013-08-20 10:47:40 +00:00
parent 479d63288e
commit db1dc1dcc6
2 changed files with 5 additions and 3 deletions

View File

@ -367,6 +367,7 @@ void CMusicHandler::playMusicFromSet(std::string whichSet, bool loop)
if (current && current->isSet(whichSet))
return;
// in this mode - play random track from set
queueNext(this, whichSet, "", loop);
}
@ -390,7 +391,8 @@ void CMusicHandler::playMusicFromSet(std::string whichSet, int entryID, bool loo
if (current && current->isTrack( selectedEntry->second))
return;
queueNext(this, whichSet, "", loop);
// in this mode - play specific track from set
queueNext(this, "", selectedEntry->second, loop);
}
void CMusicHandler::queueNext(unique_ptr<MusicEntry> queued)

View File

@ -3,7 +3,7 @@
"$schema": "http://json-schema.org/draft-04/schema",
"title" : "VCMI mod file format",
"description" : "Format used to define main mod file (mod.json) in VCMI",
"required" : [ "name", "description", "version", "author" ],
"required" : [ "name", "description", "version", "author", "contact" ],
"additionalProperties" : false,
"properties":{
@ -31,7 +31,7 @@
"description": "Author of the mod. Can be nickname, real name or name of team"
},
"weblink" : {
"contact" : {
"type":"string",
"description": "Home page of mod or link to forum thread"
},