diff --git a/polymer/eduke32/source/lunatic/control.lua b/polymer/eduke32/source/lunatic/control.lua index 618e630ae..e85a9c650 100644 --- a/polymer/eduke32/source/lunatic/control.lua +++ b/polymer/eduke32/source/lunatic/control.lua @@ -1041,9 +1041,7 @@ function _showview(x, y, z, a, horiz, sect, x1, y1, x2, y2, unbiasedp) error("invalid coordinates "..str, 2) end - local pos = vec3(x, y, z) - - CF.G_ShowView(pos, a, horiz, sect, x1, y1, x2, y2, unbiasedp); + CF.G_ShowViewXYZ(x, y, z, a, horiz, sect, x1, y1, x2, y2, unbiasedp); end diff --git a/polymer/eduke32/source/lunatic/defs.ilua b/polymer/eduke32/source/lunatic/defs.ilua index 552c9adb0..707740679 100644 --- a/polymer/eduke32/source/lunatic/defs.ilua +++ b/polymer/eduke32/source/lunatic/defs.ilua @@ -591,6 +591,7 @@ typedef struct { char pwlockout[MAXPWLOCKOUT],rtsname[MAXRTSNAME]; char display_bonus_screen; char show_level_text; + char wchoice[MAX_WEAPONS]; } user_defs; typedef struct { diff --git a/polymer/eduke32/source/lunatic/lunatic_game.c b/polymer/eduke32/source/lunatic/lunatic_game.c index b8af9fd9b..6cd14e619 100644 --- a/polymer/eduke32/source/lunatic/lunatic_game.c +++ b/polymer/eduke32/source/lunatic/lunatic_game.c @@ -375,6 +375,13 @@ extern void G_GameExit(const char *msg); } #endif +static void G_ShowViewXYZ(int32_t x, int32_t y, int32_t z, int32_t a, int32_t horiz, int32_t sect, + int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t unbiasedp) +{ + vec3_t vec = { x, y, z }; + G_ShowView(vec, a, horiz, sect, x1, y1, x2, y2, unbiasedp); +} + #define LARG(index) lua_tointeger(L, index) #define ONE_ARG LARG(1) @@ -419,8 +426,8 @@ DEFINE_RET_CFUNC(A_InsertSprite, LARG(1), LARG(2), LARG(3), LARG(4), LARG(5), LA DEFINE_VOID_CFUNC(A_AddToDeleteQueue, ONE_ARG) DEFINE_RET_CFUNC(A_PlaySound, TWO_ARGS) DEFINE_VOID_CFUNC(A_DeleteSprite, ONE_ARG) -DEFINE_VOID_CFUNC(G_ShowView, LARG(1), LARG(2), LARG(3), LARG(4), LARG(5), LARG(6), - LARG(7), LARG(8), LARG(9)) +DEFINE_VOID_CFUNC(G_ShowViewXYZ, LARG(1), LARG(2), LARG(3), LARG(4), LARG(5), LARG(6), + LARG(7), LARG(8), LARG(9), LARG(10), LARG(11)) #define CFUNC_REG(Name) { #Name, Name##_CF } @@ -440,7 +447,7 @@ static struct { const char *name; lua_CFunction func; } cfuncs[] = CFUNC_REG(A_AddToDeleteQueue), CFUNC_REG(A_PlaySound), CFUNC_REG(A_DeleteSprite), - CFUNC_REG(G_ShowView), + CFUNC_REG(G_ShowViewXYZ), }; // Creates a global table "CF" containing the functions from cfuncs[].