mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 11:51:50 +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)
|
||||
return null
|
||||
|
||||
// increment age count (see: addToCache(CodepointSequence, Pixmap, Int))
|
||||
textCache[key].age += 1
|
||||
// decrement age count (see: addToCache(CodepointSequence, Pixmap, Int))
|
||||
if (textCache[key].age > 0) textCache[key].age -= 1
|
||||
|
||||
return textCache[key]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user