From: havoc Date: Thu, 19 Apr 2012 09:17:39 +0000 (+0000) Subject: fix some redundant int to float to double casts when using PRVM_64 X-Git-Tag: xonotic-v0.7.0~155 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af8f94887236f220785607a5189c10ca4df1d185;p=xonotic%2Fdarkplaces.git fix some redundant int to float to double casts when using PRVM_64 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11798 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=0a70d4bc7d206e921f5467e583cc4a16415b5696 --- diff --git a/menu.c b/menu.c index 2d5fd4be..c8152918 100644 --- a/menu.c +++ b/menu.c @@ -5272,8 +5272,8 @@ static void MP_KeyEvent (int key, int ascii, qboolean downevent) prvm_prog_t *prog = MVM_prog; // pass key - prog->globals.fp[OFS_PARM0] = (float) key; - prog->globals.fp[OFS_PARM1] = (float) ascii; + prog->globals.fp[OFS_PARM0] = (prvm_vec_t) key; + prog->globals.fp[OFS_PARM1] = (prvm_vec_t) ascii; if (downevent) prog->ExecuteProgram(prog, PRVM_menufunction(m_keydown),"m_keydown(float key, float ascii) required"); else if (PRVM_menufunction(m_keyup)) @@ -5312,7 +5312,7 @@ static void MP_ToggleMenu(int mode) { prvm_prog_t *prog = MVM_prog; - prog->globals.fp[OFS_PARM0] = (float) mode; + prog->globals.fp[OFS_PARM0] = (prvm_vec_t) mode; prog->ExecuteProgram(prog, PRVM_menufunction(m_toggle),"m_toggle(float mode) required"); }