1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-22 23:17:04 +00:00

moved zgmod to util

This commit is contained in:
Zeno Rogue 2019-11-08 14:56:54 +01:00
parent af9b049057
commit b80caa11a6
2 changed files with 2 additions and 2 deletions

View File

@ -776,8 +776,6 @@ EX namespace nilv {
{ point31(0,0,0.5), point31(-0.5,0.5,0.25), point31(-0.5,-0.5,0.75), point31(0,0,0.5), point31(-0.5,-0.5,0.75), point31(-0.5,-0.5,0.5), point31(0,0,0.5), point31(-0.5,-0.5,0.5), point31(0.5,-0.5,0.5), point31(0,0,0.5), point31(0.5,-0.5,0.5), point31(0.5,-0.5,0.25), point31(0,0,0.5), point31(0.5,-0.5,0.25), point31(0.5,0.5,0.75), point31(0,0,0.5), point31(0.5,0.5,0.75), point31(0.5,0.5,0.5), point31(0,0,0.5), point31(0.5,0.5,0.5), point31(-0.5,0.5,0.5), point31(0,0,0.5), point31(-0.5,0.5,0.5), point31(-0.5,0.5,0.25), },
}};
EX int zgmod(int a, int b) { return b ? gmod(a, b) : a; }
EX array<int,3> nilperiod, nilperiod_edit;
struct hrmap_nil : hrmap {

View File

@ -41,6 +41,8 @@ EX int gmod(int i, int j) {
return i;
}
EX int zgmod(int a, int b) { return b ? gmod(a, b) : a; }
EX int gdiv(int i, int j) {
return (i - gmod(i, j)) / j;
}