mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
Adjusted LAYERS_PER_CONTACT from 3 to 4. This is not a preferred
solution; it would be much better to make the value adjustible, but the array of tiles sized to LAYERS_PER_CONTACT is a Region structure, and the routine that frees the Region structures does not have a way to call a routine to take additional measures like free'ing a sub- structure of the Region. A proper solution will require some work.
This commit is contained in:
+1
-1
@@ -423,7 +423,7 @@ ResFindNewContactTiles(contacts)
|
||||
}
|
||||
}
|
||||
#ifdef PARANOID
|
||||
if (contacts->cp_currentcontact > LAYERS_PER_CONTACT)
|
||||
if (contacts->cp_currentcontact >= LAYERS_PER_CONTACT)
|
||||
{
|
||||
TxError("Error: Not enough space allocated for contact nodes\n");
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
#ifndef _RESIS_H
|
||||
#define _RESIS_H
|
||||
|
||||
#define LAYERS_PER_CONTACT 3
|
||||
#define LAYERS_PER_CONTACT 4
|
||||
#define TILES_PER_JUNCTION 2
|
||||
|
||||
typedef struct contactpoint
|
||||
|
||||
Reference in New Issue
Block a user