Skip to content

Commit

Permalink
lgen-origin: Code cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel303 committed Apr 17, 2022
1 parent 7a384ba commit fd10293
Show file tree
Hide file tree
Showing 8 changed files with 978 additions and 1,286 deletions.
798 changes: 336 additions & 462 deletions users/marcel/lgen-origin/main.cpp

Large diffs are not rendered by default.

33 changes: 15 additions & 18 deletions users/marcel/lgen-origin/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,31 @@
#define TILE_LAND_START 1
#define TILE_ROCK_START 2

typedef struct {
typedef struct
{
int algo;
bool filt_median;
bool filt_min;
bool filt_max;
bool filt_diff;
bool filt_mean;
int filt_size;
float w;
float l;
float r;
int players;
bool filt_median;
bool filt_min;
bool filt_max;
bool filt_diff;
bool filt_mean;
int filt_size;
float w;
float l;
float r;
int players;
} mapgen_config_t;

//---------------------------------------------------------------------------

extern BITMAP* cmap;
extern BITMAP** img_tile;
extern BITMAP * cmap;
extern BITMAP ** img_tile;
extern mapgen_config_t config;

//---------------------------------------------------------------------------

extern bool save_image(BITMAP* bmp);
extern bool save_image(BITMAP * bmp);
extern void swap_pages();
extern void push_palette();
extern void pop_palette();
extern void set_palette_main();
extern void set_palette_tiles();

//---------------------------------------------------------------------------

Expand Down
Loading

0 comments on commit fd10293

Please sign in to comment.