diff src/paranormal/actuators.c @ 168:e094aa00fdee trunk

[svn] - support lookup of actuator templates by their display name - use displayed names in the "new actuator" popup menu.
author nenolod
date Tue, 31 Oct 2006 22:42:55 -0800
parents fd9c0a5871ac
children 0d826917c56f
line wrap: on
line diff
--- a/src/paranormal/actuators.c	Tue Oct 31 22:20:56 2006 -0800
+++ b/src/paranormal/actuators.c	Tue Oct 31 22:42:55 2006 -0800
@@ -68,7 +68,7 @@
   int i;
 
   for (i=0; builtin_table[i]; i++)
-    if (! g_strcasecmp (name, builtin_table[i]->name))
+    if (! g_strcasecmp (name, builtin_table[i]->name) || ! g_strcasecmp(name, builtin_table[i]->dispname))
       break;
 
   /* actuator not found */