mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
set symbol hotfix
This commit is contained in:
@@ -111,6 +111,7 @@ function setSymbolFromGatherer() {
|
||||
}
|
||||
}
|
||||
setSymbol.onload = function() {
|
||||
if (setSymbol.width >=1) {
|
||||
if (setSymbol.width / setSymbol.height > setSymbolWidth / setSymbolHeight) {
|
||||
setSymbolDrawWidth = setSymbolWidth
|
||||
setSymbolDrawHeight = setSymbolWidth * setSymbol.height / setSymbol.width
|
||||
@@ -129,6 +130,10 @@ setSymbol.onload = function() {
|
||||
setSymbolDrawY -= setSymbolDrawHeight / 2
|
||||
}
|
||||
drawCardObjects()
|
||||
} else {
|
||||
setSymbol.src = '/data/images/cardImages/blank.png'
|
||||
}
|
||||
|
||||
}
|
||||
watermark.onload = function() {
|
||||
watermarkUpdated()
|
||||
|
Reference in New Issue
Block a user