From 83fa6334d3b6fd08793b6443d78948db872a8201 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 6 Sep 2019 08:18:00 +0200 Subject: [PATCH] made classflag inline --- flags.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flags.cpp b/flags.cpp index 2cc92dcd..05438acb 100644 --- a/flags.cpp +++ b/flags.cpp @@ -10,10 +10,10 @@ namespace hr { #if HDR -const flagtype& classflag(eItem it) { return iinf[it].flags; } -const flagtype& classflag(eWall w) { return winf[w].flags; } -const flagtype& classflag(eMonster m) { return minf[m].flags; } -const flagtype& classflag(eLand l) { return linf[l].flags; } +const inline flagtype& classflag(eItem it) { return iinf[it].flags; } +const inline flagtype& classflag(eWall w) { return winf[w].flags; } +const inline flagtype& classflag(eMonster m) { return minf[m].flags; } +const inline flagtype& classflag(eLand l) { return linf[l].flags; } #define ANYFLAGCHECK(name, cond, field, enum) inline bool name(enum w) { flagtype flag = classflag(w); return cond; } inline bool name(cell *c) { return name(c->field); }