diasurgical/DevilutionX

Cleanup manual value clamping

Offen

#1.666 geöffnet am 24.04.2021

 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C++ (743 Forks)batch import
good first issuehelp wanted

Repository-Metriken

Stars
 (7.255 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 12h) (15 gemergte PRs in 30 T)

Beschreibung

The code is littered with conditions that check that values do not go over or under the min/max range.

This is relatively easy but tedious to clean up, but doing so greatly helps the readability of the code.

An example of such cleanups in inv.cpp and a couple of other files: https://github.com/diasurgical/devilutionX/pull/1665

Contributor Guide