mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-18 23:41:38 +00:00
Remove some potential harmfull "long"
While the use of "long" was harmless in this case, it's unnecessary and we try to keep Quake II free from longs.
This commit is contained in:
parent
c80954a65e
commit
590baaa3e9
3 changed files with 4 additions and 4 deletions
|
@ -79,7 +79,7 @@ typedef struct
|
|||
int samplepos; /* in mono samples */
|
||||
int samplebits;
|
||||
int speed;
|
||||
byte *buffer;
|
||||
unsigned char *buffer;
|
||||
} dma_t;
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -945,7 +945,7 @@ S_ClearBuffer(void)
|
|||
if (dma.buffer)
|
||||
{
|
||||
int i;
|
||||
unsigned char *ptr = (unsigned char *)dma.buffer;
|
||||
unsigned char *ptr = dma.buffer;
|
||||
|
||||
i = dma.samples * dma.samplebits / 8;
|
||||
|
||||
|
|
|
@ -48,9 +48,9 @@ S_TransferPaintBuffer(int endtime)
|
|||
int *p;
|
||||
int step;
|
||||
int val;
|
||||
unsigned long *pbuf;
|
||||
unsigned char *pbuf;
|
||||
|
||||
pbuf = (unsigned long *)dma.buffer;
|
||||
pbuf = dma.buffer;
|
||||
|
||||
if (s_testsound->value)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue