1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-10 19:24:06 +00:00

fixes to some warnings in g++ c++20

This commit is contained in:
Zeno Rogue 2025-03-30 12:51:16 +02:00
parent 546161ce28
commit 283928bf5e
2 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ void drawLightning(const shiftmatrix& V) {
void drawCurse(const shiftmatrix& V, eItem it) {
#if CAP_QUEUE
float ds = ptick(450) + (it * 5.5); // Extra offset so both Gluttony and Repulsion are easily visible
float ds = ptick(450) + (int(it) * 5.5); // Extra offset so both Gluttony and Repulsion are easily visible
color_t col = darkena(iinf[it].color, 0, 0xFF);
for(int u=0; u<20; u++) {
ld leng, rad;

View File

@ -73,7 +73,7 @@ bool ikappear(int i) {
return ikmerge(i);
}
const int glyphs = ittypes + motypes;
const int glyphs = int(ittypes) + int(motypes);
int gfirsttime[glyphs], glasttime[glyphs], gcopy[glyphs], ikland[glyphs];
int glyphorder[glyphs];
@ -302,7 +302,7 @@ bool displayglyph(int cx, int cy, int buttonsize, char glyph, color_t color, int
qty < 100 ? buttonsize / 2 :
buttonsize / 3;
if(id == moMutant + ittypes && clearing::imputed.nonzero()) {
if(id == int(moMutant) + int(ittypes) && clearing::imputed.nonzero()) {
bignum bn = clearing::imputed + qty;
str = short_form(bn);
bsize = buttonsize / 4;