mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
changes to compile on Android/iOS
This commit is contained in:
parent
ca007b70cf
commit
ee14b3035f
2
init.cpp
2
init.cpp
@ -455,7 +455,7 @@ string buildScoreDescription() {
|
|||||||
|
|
||||||
s += XLAT("HyperRogue for Android");
|
s += XLAT("HyperRogue for Android");
|
||||||
s += " ( " VER "), http://www.roguetemple.com/z/hyper/\n";
|
s += " ( " VER "), http://www.roguetemple.com/z/hyper/\n";
|
||||||
s += XLAT("Date: %1 time: %2 s ", buf, getgametime());
|
s += XLAT("Date: %1 time: %2 s ", buf, getgametime_s());
|
||||||
s += XLAT("distance: %1\n", its(celldist(cwt.c)));
|
s += XLAT("distance: %1\n", its(celldist(cwt.c)));
|
||||||
// s += buf2;
|
// s += buf2;
|
||||||
if(cheater) s += XLAT("Cheats: ") + its(cheater) + "\n";
|
if(cheater) s += XLAT("Cheats: ") + its(cheater) + "\n";
|
||||||
|
@ -406,7 +406,7 @@ void drawpolyline(const polytodraw& p) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CAP_XGD==1
|
#if CAP_XGD==1
|
||||||
gdpush(1); gdpush(col); gdpush(outline); gdpush(polyi);
|
gdpush(1); gdpush(p.col); gdpush(pp.outline); gdpush(polyi);
|
||||||
for(int i=0; i<polyi; i++) gdpush(polyx[i]), gdpush(polyy[i]);
|
for(int i=0; i<polyi; i++) gdpush(polyx[i]), gdpush(polyy[i]);
|
||||||
#elif CAP_SDLGFX==1
|
#elif CAP_SDLGFX==1
|
||||||
filledPolygonColorI(s, polyx, polyy, polyi, p.col);
|
filledPolygonColorI(s, polyx, polyy, polyi, p.col);
|
||||||
|
@ -3321,7 +3321,7 @@ void clearMonsters() {
|
|||||||
void clearMemory() {
|
void clearMemory() {
|
||||||
clearMonsters();
|
clearMonsters();
|
||||||
gmatrix.clear();
|
gmatrix.clear();
|
||||||
traplist = {};
|
while(!traplist.empty()) traplist.pop();
|
||||||
curtime = 0;
|
curtime = 0;
|
||||||
nextmove = 0;
|
nextmove = 0;
|
||||||
nextdragon = 0;
|
nextdragon = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user