Project

General

Profile

Feature #854366

fill_sprite_array(): Call city_size_get() just once in LAYER_CITY2 handling

Added by Marko Lindqvist 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
Client
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

fill_city_array() LAYER_CITY2 handling repeatedly calls city_size_get() for the same city. Change it to call it just once and to store result in a variable. This also works around a type-limit warning where return of the function (unsigned char) is compared to 1000.

History

#2 Updated by Marko Lindqvist 6 months ago

  • Subject changed from fill_city_array(): Call city_size_get() just once in LAYER_CITY2 handling to fill_sprite_array(): Call city_size_get() just once in LAYER_CITY2 handling

#3 Updated by Marko Lindqvist 6 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF