]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/hydratoolz/plugin.cpp
- Weird shiftvalues are now hidden to the user, shiftvalues will
[xonotic/netradiant.git] / contrib / hydratoolz / plugin.cpp
index ef75a753c8295225e0e1b6b0a643f72945ed9993..abc57fc344f8ba0167f4222aab9a1b690fa5e64a 100644 (file)
@@ -68,7 +68,7 @@ static void dialog_button_callback (GtkWidget *widget, gpointer data)
   ret = (int*)gtk_object_get_data (GTK_OBJECT (parent), "ret");
 
   *loop = 0;
-  *ret = (int)data;
+  *ret = gpointer_to_int (data);
 }
 
 static gint dialog_delete_callback (GtkWidget *widget, GdkEvent* event, gpointer data)
@@ -298,7 +298,7 @@ GSList *AddToWadList(GSList *wadlist, const char *shadername, const char *wad)
 
   for (GSList *l = wadlist; l != NULL ; l = l->next)
   {
-    if (!stricmp((char *)l->data,wadname))
+    if (string_equal_nocase((char *)l->data,wadname))
     {
       free( wadname );
       return wadlist;
@@ -334,7 +334,7 @@ void UpdateWadKeyPair( void )
   Sys_Printf("Searching for in-use wad files...\n");
   for(pEpair = pEntity->epairs; pEpair != NULL; pEpair = pEpair->next)
   {
-    if (stricmp(pEpair->key,"wad") == 0)
+    if (string_equal_nocase(pEpair->key,"wad"))
     {
       strcpy(wads,pEpair->value);
       ConvertDOSToUnixName(wads,wads);
@@ -415,7 +415,7 @@ void UpdateWadKeyPair( void )
   wads[0] = 0;
   while (wadlist)
   {
-    if (stricmp((char *)wadlist->data,"common-hydra.wad") == 0)
+    if (string_equal_nocase((char *)wadlist->data,"common-hydra.wad"))
     {
       Sys_Printf("Skipping radiant-supplied wad file %s\n",(char *)wadlist->data);
     }