Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
GeneralGuy4872 committed Nov 10, 2019
1 parent ef2b1f5 commit 788b47f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/roomgen.messy
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
typedef void* mapgendispatchtyp[256][256][512][2];
typedef struct roomneighbors mapgeneighborstyp[256][256][512];

typedef void (*mapgencall)(struct latlontyp,struct roomneighbors)
typedef void (*mapgencall)(struct latlontyp,struct roomneighbors);
typedef void (*mapgenconstructor)(mapgendispatchtyp,mapgeneighbortyp);

mapgentoplevel (latlon)
struct latlontyp latlon
struct latlontyp latlon;
{
struct planetyp plane = getplanetyp(latlon);
if (PLANESTACK::planep(plane)) {
Expand All @@ -19,7 +19,7 @@ else {
}

char symbol[15] = sprintf("r%02u_az%03u_el%02u",latlon.shift,latlon.el,((latlon.el < 0) ? latlon.el : (abs(latlon.el) + 1)) )
void* handle = dlopen(LIB_GAMES_PATH GAME_NAME_PATH "/mapgen.so");
void* handle = dlopen(LIB_GAMES_PATH GAME_NAME_PATH "/mapgen.so",RTLD_NOW);
mapgendispatchtyp mapgendispatch;
mapgeneighborstyp mapgeneighbors;
mapgenconstructor constructor = dlsym(handle,symbol);
Expand Down

0 comments on commit 788b47f

Please sign in to comment.