Update diceresult.cpp

better management of scalar mode