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

@ -3,7 +3,7 @@
Draws a lightning strike between the click
and drag+release positions.
Last updated: April 19, 2023
Last updated: December 29, 2023
*/
#include <stdio.h>
@ -21,7 +21,7 @@ int sx, sy;
Uint32 lightning_api_version(void);
int lightning_init(magic_api * api, Uint32 disabled_features);
int lightning_init(magic_api * api, Uint8 disabled_features, Uint8 complexity_level);
int lightning_get_tool_count(magic_api * api);
SDL_Surface *lightning_get_icon(magic_api * api, int which);
char *lightning_get_name(magic_api * api, int which);
@ -54,7 +54,7 @@ Uint32 lightning_api_version(void)
return (TP_MAGIC_API_VERSION);
}
int lightning_init(magic_api * api, Uint32 disabled_features ATTRIBUTE_UNUSED)
int lightning_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint8 complexity_level ATTRIBUTE_UNUSED)
{
char fname[1024];