get_score() function does not return negative values as displayed in the GUI

Started by smith92clone

Crashguard303 Lv 1

In the developer preview, the undo score bar now shows negative values, thanks,
but the get_score() remains at 0.
Did I get an older DP-version?

Seth Cooper Staff Lv 1

For backwards compatibility, just calling get_score() still stops at 0. However, now it takes an optional boolean argument that specifies whether or not returning a negative score is okay. This is also reflected in the documentation.