return false;
if (GlobalSettings::GS()->doSanityChecks) {
- if (!checkBoundsInclusive(params->attackLength, 0, 0xFFFF)){
+ if (!checkBoundsInclusive(params->attackLength, 0, 0x7FFF)){
reportError("Attack length out of bounds");
return false;
}
- if (!checkBoundsInclusive(params->attackLevel, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->attackLevel, 0, 0x7FFF)) {
reportError("Attack level out of bounds");
return false;
- } if (!checkBoundsInclusive(params->fadeLength, 0, 0xFFFF)) {
+ } if (!checkBoundsInclusive(params->fadeLength, 0, 0x7FFF)) {
reportError("Fade length out of bounds");
return false;
}
- if (!checkBoundsInclusive(params->fadeLevel, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->fadeLevel, 0, 0x7FFF)) {
reportError("Fade level out of bounds");
return false;
}
return false;
}
- if (!checkBoundsInclusive(params->replayDelay, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->replayDelay, 0, 0x7FFF)) {
reportError("Replay delay out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->replayLength, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->replayLength, 0, 0x7FFF)) {
reportError("Replay length out of bounds.");
return false;
}
return false;
if (GlobalSettings::GS()->doSanityChecks) {
- if (!checkBoundsInclusive(params->attackLength, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->attackLength, 0, 0x7FFF)) {
reportError("Attack length out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->attackLevel, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->attackLevel, 0, 0x7FFF)) {
reportError("Attack level out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->fadeLength, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->fadeLength, 0, 0x7FFF)) {
reportError("Fade length out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->fadeLevel, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->fadeLevel, 0, 0x7FFF)) {
reportError("Fade level out of bounds.");
return false;
}
return false;
}
- if (!checkBoundsInclusive(params->period, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->period, 0, 0x7FFF)) {
reportError("Period out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->phase, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->phase, 0, 0x7FFF)) {
reportError("Phase out of bounds.");
return false;
}
return false;
if (GlobalSettings::GS()->doSanityChecks) {
- if (!checkBoundsInclusive(params->attackLength, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->attackLength, 0, 0x7FFF)) {
reportError("Attack length out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->attackLevel, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->attackLevel, 0, 0x7FFF)) {
reportError("Attack level out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->fadeLength, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->fadeLength, 0, 0x7FFF)) {
reportError("Fade length out of bounds.");
return false;
}
- if (!checkBoundsInclusive(params->fadeLevel, 0, 0xFFFF)) {
+ if (!checkBoundsInclusive(params->fadeLevel, 0, 0x7FFF)) {
reportError("Fade level out of bounds.");
return false;
}