added support for playing global animations in different viewports
[rocksndiamonds.git] / src / libgame / misc.c
index 19a649b91a522ee1288c9ea2f0e199fe00726ba9..c34cddd322cf7a1294ee33c074e73f736327e2c9 100644 (file)
@@ -2716,7 +2716,8 @@ int get_parameter_value(char *value_raw, char *suffix, int type)
   }
   else if (strEqual(suffix, ".class"))
   {
-    result = get_hash_from_key(value);
+    result = (strEqual(value, ARG_UNDEFINED) ? ARG_UNDEFINED_VALUE :
+             get_hash_from_key(value));
   }
   else if (strEqual(suffix, ".style"))
   {