mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- fix warnings.
This commit is contained in:
parent
1bb00ed4f0
commit
fb876852bb
1 changed files with 5 additions and 5 deletions
|
@ -24,18 +24,18 @@
|
||||||
#include "cmdlib.h"
|
#include "cmdlib.h"
|
||||||
#include "r_data/models/models_ue1.h"
|
#include "r_data/models/models_ue1.h"
|
||||||
|
|
||||||
double unpackuvert( uint32_t n, int c )
|
float unpackuvert( uint32_t n, int c )
|
||||||
{
|
{
|
||||||
switch( c )
|
switch( c )
|
||||||
{
|
{
|
||||||
case 2:
|
case 2:
|
||||||
return ((int16_t)((n&0x7ff)<<5))/127.;
|
return ((int16_t)((n&0x7ff)<<5))/127.f;
|
||||||
case 1:
|
case 1:
|
||||||
return ((int16_t)(((n>>11)&0x7ff)<<5))/127.;
|
return ((int16_t)(((n>>11)&0x7ff)<<5))/127.f;
|
||||||
case 0:
|
case 0:
|
||||||
return ((int16_t)(((n>>22)&0x3ff)<<6))/127.;
|
return ((int16_t)(((n>>22)&0x3ff)<<6))/127.f;
|
||||||
default:
|
default:
|
||||||
return 0.;
|
return 0.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue