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:
parent
479d63288e
commit
db1dc1dcc6
@ -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)
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user