<i>This post was originally made by <b>skyjake</b> on the dengDevs blog. It was posted under the categories: Games, Mac OS X, Unix/Linux.</i>
Danij, you have set up map data counters (numlines, numsides, etc.) in <tt>p_mapsetup.c</tt> on game-side in addition to the engine's map data counters. These strike me as redundant. Also, on Linux and Mac global variables from the engine and the game lib are in the same namespace, which wreaks havoc on map loading.
Wouldn't it be enough that the games just call DD_GetInteger(DD_LINE_COUNT), etc. when they need the counts? To make the transition easier, just use #define on game-side:
<pre>#define numlines DD_GetInteger(DD_LINE_COUNT)</pre>