Posted May 23, 2021 by sylvie
Attention Gamers!! I made a small typo in the most recent update that somehow had extremely severe consequences. Please update to the newest version right away!
When you throw an item off the edge of the screen, sometimes it would just warp to an weird location, often getting stuck in a wall or disappearing forever!
This is because of something called the "item shifting code". When you try throw an item, but the default spawn position of the item is inside a wall, the game will try to shift the spawn position outside of the wall. It has to be careful about this so it doesn't shift items through walls though. I tried to fix a bug involving shifting through walls in the previous update.
I added a little failsafe where if the item gets shifted offscreen, it will abort the shift and snap back to the original desired position. The code for the failsafe looked something like this:
if outside_view() {
x = previous_x;
y = previous_x;
}
Do you see the problem? I wrote previous_x twice. That means the item will usually just warp to a totally wrong place when this "failsafe" occurs!
If you already fell victim to this bug and lost a great item, you might be able to get some help from a certain Thief in the Cavern of Ancients.
Alternatively, send me your save file and tell me which item(s) you lost, and I will give them back to you. The save is stored under AppData/Local/CCinMW on Windows or ~/.config/CCinMW on Linux.