mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-07 02:12:56 +02:00
tiles: reorder TileStoreFree()
This commit is contained in:
committed by
R. Timothy Edwards
parent
52fced3544
commit
b9dd4bfb7c
+11
-11
@@ -720,6 +720,17 @@ getTileFromTileStore(void)
|
||||
return (Tile *)((pointertype)_current_ptr - sizeof(Tile));
|
||||
}
|
||||
|
||||
Tile *
|
||||
TiAlloc(void)
|
||||
{
|
||||
Tile *newtile;
|
||||
|
||||
newtile = getTileFromTileStore();
|
||||
TiSetClient(newtile, CLIENTDEFAULT);
|
||||
TiSetBody(newtile, 0);
|
||||
return (newtile);
|
||||
}
|
||||
|
||||
static void
|
||||
TileStoreFree(
|
||||
Tile *ptr)
|
||||
@@ -738,17 +749,6 @@ TileStoreFree(
|
||||
}
|
||||
}
|
||||
|
||||
Tile *
|
||||
TiAlloc(void)
|
||||
{
|
||||
Tile *newtile;
|
||||
|
||||
newtile = getTileFromTileStore();
|
||||
TiSetClient(newtile, CLIENTDEFAULT);
|
||||
TiSetBody(newtile, 0);
|
||||
return (newtile);
|
||||
}
|
||||
|
||||
void
|
||||
TiFree(
|
||||
Tile *tp)
|
||||
|
||||
Reference in New Issue
Block a user