mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Merge remote-tracking branch 'refs/remotes/LLK/develop' into feature/fencing
This commit is contained in:
commit
d740698e25
2 changed files with 7 additions and 2 deletions
|
@ -42,7 +42,7 @@
|
||||||
"scratch-render": "latest",
|
"scratch-render": "latest",
|
||||||
"script-loader": "0.7.0",
|
"script-loader": "0.7.0",
|
||||||
"stats.js": "0.17.0",
|
"stats.js": "0.17.0",
|
||||||
"tap": "10.0.2",
|
"tap": "10.1.0",
|
||||||
"travis-after-all": "1.4.4",
|
"travis-after-all": "1.4.4",
|
||||||
"webpack": "2.2.1",
|
"webpack": "2.2.1",
|
||||||
"webpack-dev-server": "1.16.3"
|
"webpack-dev-server": "1.16.3"
|
||||||
|
|
|
@ -439,6 +439,11 @@ Runtime.prototype.startHats = function (requestedHatOpcode,
|
||||||
}
|
}
|
||||||
var instance = this;
|
var instance = this;
|
||||||
var newThreads = [];
|
var newThreads = [];
|
||||||
|
|
||||||
|
for (var opts in optMatchFields) {
|
||||||
|
optMatchFields[opts] = optMatchFields[opts].toUpperCase();
|
||||||
|
}
|
||||||
|
|
||||||
// Consider all scripts, looking for hats with opcode `requestedHatOpcode`.
|
// Consider all scripts, looking for hats with opcode `requestedHatOpcode`.
|
||||||
this.allScriptsDo(function (topBlockId, target) {
|
this.allScriptsDo(function (topBlockId, target) {
|
||||||
var potentialHatOpcode = target.blocks.getBlock(topBlockId).opcode;
|
var potentialHatOpcode = target.blocks.getBlock(topBlockId).opcode;
|
||||||
|
@ -466,7 +471,7 @@ Runtime.prototype.startHats = function (requestedHatOpcode,
|
||||||
|
|
||||||
if (optMatchFields) {
|
if (optMatchFields) {
|
||||||
for (var matchField in optMatchFields) {
|
for (var matchField in optMatchFields) {
|
||||||
if (hatFields[matchField].value !==
|
if (hatFields[matchField].value.toUpperCase() !==
|
||||||
optMatchFields[matchField]) {
|
optMatchFields[matchField]) {
|
||||||
// Field mismatch.
|
// Field mismatch.
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue