projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed regression bug introduced by changes for "autofix" command
[rocksndiamonds.git]
/
src
/
files.c
diff --git
a/src/files.c
b/src/files.c
index a78b46acd7f1b2e034884c5b407514d1d2d7edc5..49813391c63e0e7a733a23447cb5e09862ee8eb2 100644
(file)
--- a/
src/files.c
+++ b/
src/files.c
@@
-10246,6
+10246,10
@@
static int get_anim_parameter_values(char *s)
static int get_anim_action_parameter_value(char *token)
{
static int get_anim_action_parameter_value(char *token)
{
+ // check most common default case first to massively speed things up
+ if (strEqual(token, ARG_UNDEFINED))
+ return ANIM_EVENT_ACTION_NONE;
+
int result = getImageIDFromToken(token);
if (result == -1)
int result = getImageIDFromToken(token);
if (result == -1)