1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/games/stonesoup/files/patch-rltiles__tool__tile.cc
Dmitry Marakasov 95870264a9 - Update to 0.16.1
PR:		200158
Submitted by:	tobias.rehbein@web.de (maintainer)
2015-05-26 16:35:41 +00:00

18 lines
775 B
C++

--- rltiles/tool/tile.cc.orig 2015-03-04 04:53:29 UTC
+++ rltiles/tool/tile.cc
@@ -123,10 +123,10 @@ void tile::add_rim(const tile_colour &ri
if (flags[x + y * m_width])
continue;
- if (x > 0 && flags[(x-1) + y * m_width]
- || y > 0 && flags[x + (y-1) * m_width]
- || x < m_width - 1 && flags[(x+1) + y * m_width]
- || y < m_height - 1 && flags[x + (y+1) * m_width])
+ if ((x > 0 && flags[(x-1) + y * m_width])
+ || (y > 0 && flags[x + (y-1) * m_width])
+ || (x < m_width - 1 && flags[(x+1) + y * m_width])
+ || (y < m_height - 1 && flags[x + (y+1) * m_width]))
{
get_pixel(x,y) = rim;
}