Added ping pong mode (with minor errors).

This commit is contained in:
Author glitchrain
2024-12-14 07:46:47 -08:00
committed by s.aydarov
parent 20c25767bd
commit 7861a6d207
4 changed files with 31 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ private:
{
if(_Num < 0)
{
return (_Max - _Num) % _Max;
return (_Max + _Num % _Max);
}
if(_Num >= _Max)
{