diff --git a/polymer/eduke32/build/include/build.h b/polymer/eduke32/build/include/build.h index dcdf9d68d..9eb3ad822 100644 --- a/polymer/eduke32/build/include/build.h +++ b/polymer/eduke32/build/include/build.h @@ -1201,10 +1201,9 @@ int32_t checksectorpointer(int16_t i, int16_t sectnum); void getmousevalues(int32_t *mousx, int32_t *mousy, int32_t *bstatus) ATTRIBUTE((nonnull(1,2,3))); -#if !KRANDDEBUG +#if !KRANDDEBUG && !defined LUNATIC FORCE_INLINE int32_t krand(void) { - // randomseed = (randomseed*27584621)+1; randomseed = (randomseed * 1664525ul) + 221297ul; return ((uint32_t) randomseed)>>16; } diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 5c9ca6382..152740ea3 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -14356,7 +14356,9 @@ int32_t krd_print(const char *filename) fclose(fp); return 0; } +#endif // KRANDDEBUG +#if KRANDDEBUG || defined LUNATIC // // krand // @@ -14364,18 +14366,17 @@ int32_t krand(void) { // randomseed = (randomseed*27584621)+1; randomseed = (randomseed * 1664525ul) + 221297ul; - +#ifdef KRANDDEBUG if (krd_enabled) if (krd_numcalls < KRD_MAXCALLS) { backtrace(krd_fromwhere[krd_numcalls], KRD_DEPTH); krd_numcalls++; } - +#endif return ((uint32_t)randomseed)>>16; } -#endif // KRANDDEBUG - +#endif // // getzrange