mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
Modified the behavior of cell reading, mainly with respect to
dereferencing, and making the behavior of "load" on the command line (i.e., loading a cell from a file) the same as the behavior of loading a cell as a result of expanding an unloaded instance. In both cases, if "load -dereference" is used, and a cell does not exist in any search path but does exist in the original location, without dereferencing, then the cell will be loaded from the original location. Also: Corrected an error that has existed since adding the capability to read compressed files, which causes magic to crash when attempting to run the "crash recover" command (because that routine was mixing compressed and regular file stream calls).
This commit is contained in:
+1
-1
@@ -762,7 +762,7 @@ SimCellTileSrFunc(scx, fp)
|
||||
if ((def->cd_flags & CDAVAILABLE) == 0)
|
||||
{
|
||||
bool dereference = (def->cd_flags & CDDEREFERENCE) ? TRUE : FALSE;
|
||||
if (!DBCellRead(def, (char *) NULL, TRUE, dereference, NULL)) return 0;
|
||||
if (!DBCellRead(def, TRUE, dereference, NULL)) return 0;
|
||||
}
|
||||
|
||||
context.tc_scx = scx;
|
||||
|
||||
Reference in New Issue
Block a user