diff --git a/src/game.cpp b/src/game.cpp index 30d9c7f..c53465a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -70,6 +70,38 @@ #include #include "util/directiontables.h" +static std::string romani_ranch(s32 n) +{ + std::ostringstream os(std::ios::binary); + if(n == 0) + os<<"O"; + if(n < 0){ + os<<"-"; + n = -n; + } + const char *z = "MDCLXVI "; + for(s32 k = 1000; k; k /= 10, z += 2) { + int l = k/10; + while(n >= k){ + os<<*z; + n -= k; + } + if(l && n >= 9*l){ + os<= 5*l){ + os<= 4*l){ + os<