diasurgical/DevilutionX

Cleanup manual value clamping

Aperta

#1666 aperta il 24 apr 2021

 (2 commenti) (1 reazione) (0 assegnatari)C++ (743 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (7255 stelle)
Metriche merge PR
 (Merge medio 2g 12h) (15 PR mergiate in 30 g)

Descrizione

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

Guida contributor