medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b1e48b930658b42eff66f6ff2a61c3a77dd09cf1
parent 468cbd8e51724b31e6edeaadb39dfb7223cf359f
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jan  8 16:34:57 +0200

Fix MSVC warnings

Diffstat:
hm.cc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hm.cc b/hm.cc @@ -183,9 +183,9 @@ extern "C" GAME_FRAME( game_frame ) { renderer_begin_frame( CLEARCOLOUR_DONT ); } - int fb = input->keys[ KEY_W ] - input->keys[ KEY_S ]; - int lr = input->keys[ KEY_D ] - input->keys[ KEY_A ]; - int dz = input->keys[ KEY_SPACE ] - input->keys[ KEY_LEFTSHIFT ]; + float fb = float( input->keys[ KEY_W ] - input->keys[ KEY_S ] ); + float lr = float( input->keys[ KEY_D ] - input->keys[ KEY_A ] ); + float dz = float( input->keys[ KEY_SPACE ] - input->keys[ KEY_LEFTSHIFT ] ); int dpitch = input->keys[ KEY_DOWNARROW ] - input->keys[ KEY_UPARROW ]; int dyaw = input->keys[ KEY_LEFTARROW ] - input->keys[ KEY_RIGHTARROW ];