All pastes #2094049 Raw Edit

Untitled

public text v1 · immutable
#2094049 ·published 2011-11-12 23:46 UTC
rendered paste body
*** code/renderer/tr_shade.cpp	2011-11-13 03:44:52.204329896 +0400
--- code/renderer/tr_shade.cpp.orig	2011-11-13 03:35:12.337652005 +0400
***************
*** 23,32 ****
  
  #include "tr_local.h"
  
- #ifndef WIN32
- #include <inttypes.h>
- #endif
- 
  /*
    THIS ENTIRE FILE IS BACK END
  
--- 23,28 ----
***************
*** 128,138 ****
  	// it is necessary to do this messy calc to make sure animations line up
  	// exactly with waveforms of the same frequency
  	double v = tess.shaderTime * bundle->imageAnimationSpeed * FUNCTABLE_SIZE;
- #ifndef WIN32 
-         int64_t index = v;
- #else
  	__int64 index = v; //myftol( tess.shaderTime * bundle->imageAnimationSpeed * FUNCTABLE_SIZE );
- #endif
  	index >>= FUNCTABLE_SHIFT;
  
  	if ( index < 0 ) // may happen with shader time offsets
--- 124,130 ----