… | |
… | |
193 | return Crossfire_Map_wrap(cf_map_get_property(map->map,CFAPI_MAP_PROP_NEXT)); |
193 | return Crossfire_Map_wrap(cf_map_get_property(map->map,CFAPI_MAP_PROP_NEXT)); |
194 | } |
194 | } |
195 | |
195 | |
196 | static int Map_InternalCompare(Crossfire_Map* left, Crossfire_Map* right) |
196 | static int Map_InternalCompare(Crossfire_Map* left, Crossfire_Map* right) |
197 | { |
197 | { |
198 | return (int)left->map - (int)right->map; |
198 | return left->map < right->map ? -1 : ( left->map == right->map ? 0 : 1 ); |
199 | } |
199 | } |
200 | |
200 | |
201 | /* Legacy code: convert to long so that non-object functions work correctly */ |
201 | /* Legacy code: convert to long so that non-object functions work correctly */ |
202 | static PyObject* Crossfire_Map_Long( PyObject* obj ) |
202 | static PyObject* Crossfire_Map_Long( PyObject* obj ) |
203 | { |
203 | { |