HomeWildfire Games

Adds offsets to the terrain resize function and adds comments how the resizing…

Description

Adds offsets to the terrain resize function and adds comments how the resizing works.

Original Patch By: Clockwork-Muse
Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D2724

Event Timeline

Freagarach added inline comments.
/ps/trunk/source/graphics/Terrain.cpp
652
../../../source/graphics/Terrain.cpp: In member function ‘void CTerrain::ResizeAndOffset(ssize_t, ssize_t, ssize_t)’:
../../../source/graphics/Terrain.cpp:652:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (size_t i = 0; i < width; ++i)
                      ~~^~~~~~~

Not sure if I ought to report these kind of warnings? But now this one is at least ;)