]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix some redundant int to float to double casts when using PRVM_64
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 Apr 2012 09:17:39 +0000 (09:17 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 19 Apr 2012 20:30:38 +0000 (22:30 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11798 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0a70d4bc7d206e921f5467e583cc4a16415b5696

menu.c

diff --git a/menu.c b/menu.c
index 2d5fd4be6bed28247b8514a90cfebdd235238e8c..c81529189a548c8e3e0a496b6ca83bd083aceadb 100644 (file)
--- 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");
 }