From a9d9360faac5cce611acab620a1e4368028f5c01 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 18 Jul 2019 21:40:45 +0200 Subject: only show missingno for characters and not testimony/evidence --- webAO/client.html | 6 +++--- webAO/client.js | 13 ++++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'webAO') diff --git a/webAO/client.html b/webAO/client.html index be3997e..29ff072 100644 --- a/webAO/client.html +++ b/webAO/client.html @@ -25,12 +25,12 @@
- Courtroom background - + Courtroom backdrop + Character Various overlay Character Evidence - Effect overlay + Shout overlay

Dolan

diff --git a/webAO/client.js b/webAO/client.js index 8a5ddfb..f417c5b 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1414,13 +1414,24 @@ window.changeCharacter = changeCharacter; * Triggered when there was an error loading a character sprite. * @param {HTMLImageElement} image the element containing the missing image */ -export function imgError(image) { +export function charError(image) { image.onerror = ""; image.src = "misc/placeholder.gif"; return true; } window.imgError = imgError; +/** + * Triggered when there was an error loading a generic sprite. + * @param {HTMLImageElement} image the element containing the missing image + */ +export function imgError(image) { + image.onerror = ""; + image.src = ""; //unload so the old sprite doesn't persist + return true; +} +window.imgError = imgError; + /** * Triggered when there was an error loading a character icon. * @param {HTMLImageElement} image the element containing the missing image -- cgit