Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/coelckers/prboom-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 16, 2019
2 parents c31b0a8 + 40419fa commit 3f5d7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prboom2/src/r_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ void R_InitTranMap(int progress)
int fnlen;
struct {
unsigned char pct;
unsigned char playpal[256];
unsigned char playpal[256*3];
} cache;
FILE *cachefp;

Expand Down Expand Up @@ -510,7 +510,7 @@ void R_InitTranMap(int progress)
if ((cachefp = fopen(fname,"wb")) != NULL) // write out the cached translucency map
{
cache.pct = tran_filter_pct;
memcpy(cache.playpal, playpal, 256);
memcpy(cache.playpal, playpal, sizeof cache.playpal);
fseek(cachefp, 0, SEEK_SET);
fwrite(&cache, 1, sizeof cache, cachefp);
fwrite(main_tranmap, 256, 256, cachefp);
Expand Down

0 comments on commit 3f5d7b8

Please sign in to comment.