Skip to content

Commit

Permalink
Revert "Added optimization by Lee Killough"
Browse files Browse the repository at this point in the history
This early commit causes crashes on maps E4M3, E4M9 and Plutonia MAP12 (#34)

I'm pretty sure this issue due to a buggy memmove function on OpenWatcom, but will look onto it.
  • Loading branch information
viti95 committed Oct 2, 2022
1 parent e5dad40 commit fa9b959
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions FASTDOOM/r_bsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ void R_ClipSolidWallSegment(int first,
next = newend;
newend++;

// 1/11/98 killough: performance tuning using fast memmove
memmove(start + 1, start, (++newend - start) * sizeof(*start));
start->first = first;
start->last = last;
while (next != start)
{
*next = *(next - 1);
next--;
}
next->first = first;
next->last = last;
return;
}

Expand Down

0 comments on commit fa9b959

Please sign in to comment.