Replace macro max and min, by some inline functions :
-To avoid having long operation repeated twice, peoples shouldn'tuse long operation into does macro but they do so... -To avoid double increment or thing like such. -Yes this involve some implicite cast sometime, but that still better then redo 10 dereference...
This commit is contained in:
@@ -1160,7 +1160,7 @@ int map_night_timer(int tid, unsigned int tick, int id, intptr_t data); // by [y
|
||||
// Rental System
|
||||
void pc_inventory_rentals(struct map_session_data *sd);
|
||||
void pc_inventory_rental_clear(struct map_session_data *sd);
|
||||
void pc_inventory_rental_add(struct map_session_data *sd, int seconds);
|
||||
void pc_inventory_rental_add(struct map_session_data *sd, unsigned int seconds);
|
||||
void pc_rental_expire(struct map_session_data *sd, int i);
|
||||
|
||||
int pc_read_motd(void); // [Valaris]
|
||||
|
||||
Reference in New Issue
Block a user