Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkPandaKatie committed Nov 14, 2014
1 parent 90090c3 commit 7142d8f
Show file tree
Hide file tree
Showing 12 changed files with 430 additions and 428 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG
Expand Up @@ -11,14 +11,14 @@
* Beta support for demo recording and playback.
* Initial support for red-blue anaglyph stereo.
* Fixed bug where only the top half of scrolling image on the title screen was
displayed.
displayed.
* Fixed bug where menus would go black after switching away and back.
* Added new "cycle weapon" key.
* Added direct strafe keys.

2.32-2005-10-31:
* Added anisotropic filtering option, which reduces the blurring on walls when
viewed from an angle.
viewed from an angle.

2.32-2005-05-30:
* Made warp transparent<
Expand Down
6 changes: 3 additions & 3 deletions comments.txt
Expand Up @@ -325,7 +325,7 @@ Very few comments have been included in the code; most are code that has been
commented out.

A lot of functions that don't return values are declared int(...) instead of
void(...).
void(...).

Some of the monster names date back to Walken, so they may seem a bit odd to
someone unfamiliar with the history of Ken's Labyrinth.
Expand Down Expand Up @@ -484,7 +484,7 @@ Timing is done using an SDL timer callback. As SDL can not guarantee
sufficient accuracy to provide a 240 Hz callback, the current time is checked
every time the callback is executed, and the original KSM handler code run an
amount of times corresponding to the duration that has elapsed. This smooths
out most of the timer inaccuracy.
out most of the timer inaccuracy.

10 ms delays have been added to places where the original game simply runs as
quickly as possible to keep the speed in check. In the future, proper timing
Expand Down Expand Up @@ -527,7 +527,7 @@ interpolation) to 44 KHz before playback.

My modifications didn't make the code much more readable. Sorry. I introduced
several global variables to keep track of various graphics states; most of
these exist solely to compensate for oddities in the original code.
these exist solely to compensate for oddities in the original code.

Generally speaking, I tried to change as little as possible of the original
code, which means that the graphics code design is almost nonexistent; most of
Expand Down
18 changes: 9 additions & 9 deletions demo.c
Expand Up @@ -92,7 +92,7 @@ demofile_t* demofile_open(const char* filename, demo_vardef_t* vars, int record,
return d;
}
}

demofile_close(d);
return NULL;
}
Expand Down Expand Up @@ -136,7 +136,7 @@ static int demofile_write(demofile_t* d, const void* data, int size) {
return gzwrite(d->gzfil, data, size);
else
return fwrite(data, 1, size, d->rawfil);

}

static int demofile_write_hdr(demofile_t* d, int size, int clock) {
Expand All @@ -151,7 +151,7 @@ static int demofile_read_frame(demofile_t* d) {
int readsize, timediff;
Uint8 *delta, *rle, *delta_end, hdr[4];
Uint64 *tdelta, *tdata;

if ((j = demofile_read(d, hdr, 4)) < 4) {
return -1;
}
Expand Down Expand Up @@ -224,7 +224,7 @@ int demofile_advance(demofile_t* d, int dir) {
if (dir == -1) {
if (!demofile_rewindable(d))
return -1;

demofile_seek(d, -2);
demofile_read(d, hdr, 2);
prevsize = get16(hdr);
Expand Down Expand Up @@ -301,9 +301,9 @@ static int demofile_read_fileheader(demofile_t* d, demo_vardef_t* vars, const ch
if (d->format > 1)
return 0;

if (demofile_read(d, hdr, 4) < 4)
if (demofile_read(d, hdr, 4) < 4)
return 0;

nvars = get16(hdr);
d->buffer_size = get16(hdr + 2);

Expand Down Expand Up @@ -417,7 +417,7 @@ static int demofile_write_fileheader(demofile_t* d, demo_vardef_t* vars, const c

pos = 0;
for (cvardef = vars; cvardef->name; cvardef++) {

cvartrack->ptr = cvardef->ptr;
cvartrack->elemsize = cvardef->elemsize;
cvartrack->cnt = cvardef->cnt;
Expand Down Expand Up @@ -497,7 +497,7 @@ void demofile_write_frame(demofile_t* d, int timediff) {
Uint8 *ldata, *delta, *rle, *rle_end;
Uint8 hdr[2];
vartrack_t* ct;

ldata = d->cur_data;
delta = d->delta_buf;

Expand Down Expand Up @@ -561,7 +561,7 @@ void demofile_write_frame(demofile_t* d, int timediff) {
/*
static int demofile_read_frame(demofile_t* d, Uint8* hdr, int dir) {
int prev_ofs, readsize;
if (demo->format == 1) {
if (demofile_read(d, hdr, 2) < 2)
return 0;
Expand Down

0 comments on commit 7142d8f

Please sign in to comment.