diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 50c2885c0..2b89cb920 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -9862,6 +9862,20 @@ int32_t loadboard(char *filename, char flags, vec3_t *dapos, int16_t *daang, int yax_updategrays(dapos->z); #endif + { + char *p, fn[BMAX_PATH]; + + Bstrcpy(fn, filename); + + p = Bstrrchr(fn, '.'); + + if (!p) + { + Bstrcat(fn, ".cfg"); + OSD_Exec(fn); + } + } + return finish_loadboard(dapos, dacursectnum, numsprites, myflags); }