From cf6790b23e4928832a291840231d6647eb6e0e74 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 9 Oct 2016 00:15:06 +0000 Subject: [PATCH] Fix MSVC warnings git-svn-id: https://svn.eduke32.com/eduke32@5882 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index 02fea35fa..44d1eda4f 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -5303,7 +5303,7 @@ HORIZONLY:; if (VM_OnEvent(EVENT_LOOKUP,pPlayer->i,playerNum) == 0) { pPlayer->return_to_center = 9; - pPlayer->horiz += 12<<(TEST_SYNC_KEY(playerBits, SK_RUN)); + pPlayer->horiz += 12<<(int)(TEST_SYNC_KEY(playerBits, SK_RUN)); centerHoriz++; } } @@ -5313,7 +5313,7 @@ HORIZONLY:; if (VM_OnEvent(EVENT_LOOKDOWN,pPlayer->i,playerNum) == 0) { pPlayer->return_to_center = 9; - pPlayer->horiz -= 12<<(TEST_SYNC_KEY(playerBits, SK_RUN)); + pPlayer->horiz -= 12<<(int)(TEST_SYNC_KEY(playerBits, SK_RUN)); centerHoriz++; } } @@ -5322,7 +5322,7 @@ HORIZONLY:; { if (VM_OnEvent(EVENT_AIMUP,pPlayer->i,playerNum) == 0) { - pPlayer->horiz += 6<<(TEST_SYNC_KEY(playerBits, SK_RUN)); + pPlayer->horiz += 6<<(int)(TEST_SYNC_KEY(playerBits, SK_RUN)); centerHoriz++; } } @@ -5331,7 +5331,7 @@ HORIZONLY:; { if (VM_OnEvent(EVENT_AIMDOWN,pPlayer->i,playerNum) == 0) { - pPlayer->horiz -= 6<<(TEST_SYNC_KEY(playerBits, SK_RUN)); + pPlayer->horiz -= 6<<(int)(TEST_SYNC_KEY(playerBits, SK_RUN)); centerHoriz++; } }