1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-03-01 09:20:09 +00:00

Merge pull request #395 from Quuxplusone/wqual-class-return-type

Replace `const X f()` with `X f()`. NFC.
This commit is contained in:
Zeno Rogue 2025-02-23 22:53:23 +01:00 committed by GitHub
commit e6276cd641
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -507,7 +507,7 @@ EX namespace bt {
} }
} }
const transmatrix iadj(heptagon *h, int dir) { heptagon *h1 = h->cmove(dir); return adj(h1, h->c.spin(dir)); } transmatrix iadj(heptagon *h, int dir) { heptagon *h1 = h->cmove(dir); return adj(h1, h->c.spin(dir)); }
void virtualRebase(heptagon*& base, transmatrix& at) override { void virtualRebase(heptagon*& base, transmatrix& at) override {

View File

@ -24,7 +24,7 @@ static constexpr ld degree = A_PI / 180;
static const ld golden_phi = (sqrt(5)+1)/2; static const ld golden_phi = (sqrt(5)+1)/2;
static const ld log_golden_phi = log(golden_phi); static const ld log_golden_phi = log(golden_phi);
constexpr ld operator"" _deg(long double deg) { return deg * A_PI / 180; } constexpr ld operator""_deg(long double deg) { return deg * A_PI / 180; }
#endif #endif
eGeometry geometry; eGeometry geometry;

View File

@ -10,10 +10,10 @@
#include "hyper.h" #include "hyper.h"
namespace hr { namespace hr {
EX const string dnameof(eMonster m) { return m >= 0 && m < motypes ? minf[m].name : hr::format("[MONSTER %d]", m); } EX string dnameof(eMonster m) { return m >= 0 && m < motypes ? minf[m].name : hr::format("[MONSTER %d]", m); }
EX const string dnameof(eLand l) { return l >= 0 && l < landtypes ? linf[l].name : hr::format("[LAND %d]", l); } EX string dnameof(eLand l) { return l >= 0 && l < landtypes ? linf[l].name : hr::format("[LAND %d]", l); }
EX const string dnameof(eWall w) { return w >= 0 && w < walltypes ? winf[w].name : hr::format("[WALL %d]", w); } EX string dnameof(eWall w) { return w >= 0 && w < walltypes ? winf[w].name : hr::format("[WALL %d]", w); }
EX const string dnameof(eItem i) { return i >= 0 && i < ittypes ? iinf[i].name : hr::format("[ITEM %d]", i); } EX string dnameof(eItem i) { return i >= 0 && i < ittypes ? iinf[i].name : hr::format("[ITEM %d]", i); }
#if HDR #if HDR
#define NUMLAN 9 #define NUMLAN 9