mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-09 15:34:05 +09:00
fixing idiotic priority cache impl where they won't get younger
This commit is contained in:
Binary file not shown.
@@ -197,8 +197,8 @@ class GameFontBase(
|
|||||||
if (key < 0)
|
if (key < 0)
|
||||||
return null
|
return null
|
||||||
|
|
||||||
// increment age count (see: addToCache(CodepointSequence, Pixmap, Int))
|
// decrement age count (see: addToCache(CodepointSequence, Pixmap, Int))
|
||||||
textCache[key].age += 1
|
if (textCache[key].age > 0) textCache[key].age -= 1
|
||||||
|
|
||||||
return textCache[key]
|
return textCache[key]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user