version 1.6 | version 1.7 | |||
---|---|---|---|---|
|
| |||
static int Map_InternalCompare(Crossfire_Map* left, Crossfire_Map* right) | static int Map_InternalCompare(Crossfire_Map* left, Crossfire_Map* right) | |||
{ | { | |||
return (int)left->map - (int)right->map; | return left->map < right->map ? -1 : ( left->map == right->map ? 0 : 1 ); | |||
} | } | |||
/* Legacy code: convert to long so that non-object functions work correctly */ | /* Legacy code: convert to long so that non-object functions work correctly */ |
Legend:
|