@@ -275,7 +275,7 @@ namespace TFE_Input
275
275
// Serializes the input events into the demo file from vectors to strings
276
276
vector<s32> serializeInputs (Stream* stream, vector<s32> inputList, bool writeFlag)
277
277
{
278
- int keySize = 0 ;
278
+ s32 keySize = 0 ;
279
279
string keyString;
280
280
281
281
// The Vector would consist of the key codes for the input events
@@ -284,7 +284,7 @@ namespace TFE_Input
284
284
if (writeFlag)
285
285
{
286
286
keyString = convertToString (inputList);
287
- keySize = keyString.size ();
287
+ keySize = (s32) keyString.size ();
288
288
}
289
289
290
290
SERIALIZE (ReplayVersionInit, keySize, 0 );
@@ -549,7 +549,7 @@ namespace TFE_Input
549
549
SERIALIZE_BUF (SaveVersionInit, frameTicks, sizeof (fixed16_16) * TFE_ARRAYSIZE (frameTicks));
550
550
551
551
// Handle events list size
552
- int eventListsSize = inputMapping_getCounter ();
552
+ s32 eventListsSize = inputMapping_getCounter ();
553
553
SERIALIZE (ReplayVersionInit, eventListsSize, 0 );
554
554
555
555
// Settings and Input Handling
@@ -636,7 +636,7 @@ namespace TFE_Input
636
636
// Wipe the events and load them from the demo
637
637
clearEvents ();
638
638
639
- for (int i = 0 ; i < eventListsSize + 1 ; i++)
639
+ for (s32 i = 0 ; i < eventListsSize + 1 ; i++)
640
640
{
641
641
SERIALIZE (ReplayVersionInit, eventCounter, 0 );
642
642
@@ -668,7 +668,7 @@ namespace TFE_Input
668
668
669
669
// Wipe the event counter and set the max input counter
670
670
inputMapping_resetCounter ();
671
- inputMapping_setMaxCounter (inputEvents.size ());
671
+ inputMapping_setMaxCounter ((s32) inputEvents.size ());
672
672
673
673
// Set the new start time
674
674
TFE_System::setStartTime (replayStartTime);
@@ -886,7 +886,7 @@ namespace TFE_Input
886
886
keysPressed = convertToString (event.keysPressed );
887
887
mouse = convertToString (event.mousePos );
888
888
s32 xPos = s_eyePos.x ;
889
- s32 yPos = s_playerEye->posWS .y * - 1.0 ;
889
+ s32 yPos = - s_playerEye->posWS .y ;
890
890
s32 zPos = s_eyePos.z ;
891
891
angle14_16 yaw = s_playerEye->yaw ;
892
892
angle14_16 pitch = s_playerEye->pitch ;
0 commit comments