mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-05 08:51:53 +02:00
Fixed a negative tile width calculation in ResMakeRes.c, as
pointed out by github user "LegumeEmittingDiode". I agree with the suggested fix and have implemented it exactly as suggested in github issue #537.
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ ResCalcEastWest(tile, pendingList, doneList, resList)
|
||||
p1 = info->breakList;
|
||||
if (p1->br_next == NULL)
|
||||
{
|
||||
p1->br_this->rn_float.rn_area += height * (LEFT(tile) - RIGHT(tile));
|
||||
p1->br_this->rn_float.rn_area += height * (RIGHT(tile) - LEFT(tile));
|
||||
freeMagic((char *)p1);
|
||||
info->breakList = NULL;
|
||||
return(merged);
|
||||
|
||||
Reference in New Issue
Block a user