All magic tools: Add "complexity_level" arg to init()

This commit is contained in:
Bill Kendrick 2023-12-29 14:43:40 -08:00
parent 0bc54921d9
commit 2055b071f1
61 changed files with 185 additions and 189 deletions

View file

@ -24,7 +24,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: May 1, 2023
Last updated: December 29, 2023
*/
#include "tp_magic_api.h"
@ -57,7 +57,7 @@ Mix_Chunk *blind_snd;
Uint32 blind_api_version(void);
void blind_set_color(magic_api * api, int which, SDL_Surface * canvas,
SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect);
int blind_init(magic_api * api, Uint32 disabled_features);
int blind_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level);
int blind_get_tool_count(magic_api * api);
SDL_Surface *blind_get_icon(magic_api * api, int which);
char *blind_get_name(magic_api * api, int which);
@ -97,7 +97,7 @@ void blind_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSE
blind_b = b;
}
int blind_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
int blind_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint8 complexity_level ATTRIBUTE_UNUSED)
{
char fname[1024];