ConorMcPersonal / Toaster

The greatest ever Spectrum game based purely around the toast concept
Apache License 2.0
0 stars 1 forks source link

Multiple safeguards to prevent burnt toast bug #52

Closed ConorMcPersonal closed 9 months ago

ConorMcPersonal commented 9 months ago

This builds on KillRick, so review that first (although it might be independently mergeable).

Stops toast getting above 500 toastedness - this should ward off most of the danger

Then puts collars around additions/subtractions that might get out of control, by using MIN(Biggest, MAX(Smallest, Value))

In testing this seems to cut the problem off - but would value a second set of eyes on it.