version 1.1 | version 1.2 | |||
---|---|---|---|---|
|
| |||
static int Crossfire_Region_InternalCompare(Crossfire_Region* left, Crossfire_Region* right) | static int Crossfire_Region_InternalCompare(Crossfire_Region* left, Crossfire_Region* right) | |||
{ | { | |||
return ((int)left->reg - (int)right->reg); | return (left->reg < right->reg ? -1 : ( left->reg == right->reg ? 0 : 1 ) ); | |||
} | } |
Legend:
|