1 | /* |
1 | /* |
2 | * static char *rcsid_c_object_c = |
2 | * static char *rcsid_c_object_c = |
3 | * "$Id: c_object.C,v 1.3 2006/08/15 06:23:45 elmex Exp $"; |
3 | * "$Id: c_object.C,v 1.4 2006/08/17 08:07:38 elmex Exp $"; |
4 | */ |
4 | */ |
5 | /* |
5 | /* |
6 | CrossFire, A Multiplayer game for X-windows |
6 | CrossFire, A Multiplayer game for X-windows |
7 | |
7 | |
8 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
8 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
… | |
… | |
1885 | return 1; |
1885 | return 1; |
1886 | } |
1886 | } |
1887 | buf[0]='\0'; |
1887 | buf[0]='\0'; |
1888 | } |
1888 | } |
1889 | |
1889 | |
|
|
1890 | if (QUERY_FLAG(item, FLAG_UNPAID)) { |
|
|
1891 | new_draw_info(NDI_UNIQUE,0,op,"You can't rename an unpaid item! You should pay for it first."); |
|
|
1892 | return 1; |
|
|
1893 | } |
|
|
1894 | |
1890 | /* Coming here, everything is fine... */ |
1895 | /* Coming here, everything is fine... */ |
1891 | if(!strlen(buf)) { |
1896 | if(!strlen(buf)) { |
1892 | /* Clear custom name */ |
1897 | /* Clear custom name */ |
1893 | if(item->custom_name) { |
1898 | if(item->custom_name) { |
1894 | FREE_AND_CLEAR_STR(item->custom_name); |
1899 | FREE_AND_CLEAR_STR(item->custom_name); |