1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-08 01:33:02 +00:00

pathdata:: no longer inline

This commit is contained in:
Zeno Rogue
2021-08-09 00:46:52 +02:00
parent fbc32c6bc4
commit bb77f035b0

View File

@@ -236,24 +236,34 @@ EX void computePathdist(eMonster param, bool include_allies IS(true)) {
#if HDR #if HDR
struct pathdata { struct pathdata {
void checklock() { void checklock();
~pathdata();
pathdata(eMonster m, bool include_allies IS(true));
pathdata(int i);
};
#endif
pathdata::~pathdata() {
pathlock--;
clear_pathdata();
}
void pathdata::checklock() {
if(pd_from) pd_from = NULL, clear_pathdata(); if(pd_from) pd_from = NULL, clear_pathdata();
if(pathlock) printf("path error\n"); if(pathlock) printf("path error\n");
pathlock++; pathlock++;
} }
~pathdata() {
pathlock--; pathdata::pathdata(int i) { checklock(); }
clear_pathdata();
} pathdata::pathdata(eMonster m, bool include_allies IS(true)) {
pathdata(eMonster m, bool include_allies IS(true)) {
checklock(); checklock();
if(isize(pathq))
println(hlog, "! we got tiles on pathq: ", isize(pathq));
computePathdist(m, include_allies); computePathdist(m, include_allies);
} }
pathdata(int i) {
checklock();
}
};
#endif
// pathdist end // pathdist end
/** calculate cpdist, 'have' flags, and do general fixings */ /** calculate cpdist, 'have' flags, and do general fixings */