Handmade Hero » Forums » Code » Day 310: Minor typo
x13pixels
28 posts
1 project

None

#7632 Day 310: Minor typo
1 year, 4 months ago Edited by on July 18, 2016, 1:45 a.m.

I'm guessing this will get fixed as soon as the code is actually enabled but figured I would point it out anyway.


1
2
3
4
5
6
7
8
#if 0
            Existing->NextOffset = Commands->PushBufferSize;
            Existing->Bound.YMin = Minimum(Existing->Bound.YMin, SortKey.YMin);
            Existing->Bound.YMax = Minimum(Existing->Bound.YMax, SortKey.YMax);
            Existing->Bound.ZMax = Minimum(Existing->Bound.ZMax, SortKey.ZMax);
            Existing->ScreenArea = Union(Existing->ScreenArea, ScreenArea);
            Existing = us;
#endif


YMax and ZMax should use Maximum rather than Minimum.

Thanks.