mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-23 03:03:12 +00:00
pathdata:: no longer inline
This commit is contained in:
parent
fbc32c6bc4
commit
bb77f035b0
@ -236,24 +236,34 @@ EX void computePathdist(eMonster param, bool include_allies IS(true)) {
|
||||
|
||||
#if HDR
|
||||
struct pathdata {
|
||||
void checklock() {
|
||||
if(pd_from) pd_from = NULL, clear_pathdata();
|
||||
if(pathlock) printf("path error\n");
|
||||
pathlock++;
|
||||
}
|
||||
~pathdata() {
|
||||
pathlock--;
|
||||
clear_pathdata();
|
||||
}
|
||||
pathdata(eMonster m, bool include_allies IS(true)) {
|
||||
checklock();
|
||||
computePathdist(m, include_allies);
|
||||
}
|
||||
pathdata(int i) {
|
||||
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(pathlock) printf("path error\n");
|
||||
pathlock++;
|
||||
}
|
||||
|
||||
pathdata::pathdata(int i) { checklock(); }
|
||||
|
||||
pathdata::pathdata(eMonster m, bool include_allies IS(true)) {
|
||||
checklock();
|
||||
if(isize(pathq))
|
||||
println(hlog, "! we got tiles on pathq: ", isize(pathq));
|
||||
|
||||
computePathdist(m, include_allies);
|
||||
}
|
||||
|
||||
// pathdist end
|
||||
|
||||
/** calculate cpdist, 'have' flags, and do general fixings */
|
||||
|
Loading…
x
Reference in New Issue
Block a user