157 |
157 |
158 void InitializeLandscapeVariables(bool only_constants); |
158 void InitializeLandscapeVariables(bool only_constants); |
159 |
159 |
160 /* misc.c */ |
160 /* misc.c */ |
161 void DeleteName(StringID id); |
161 void DeleteName(StringID id); |
162 byte *GetName(int id, byte *buff); |
162 char *GetName(int id, char *buff); |
163 |
163 |
164 // AllocateNameUnique also tests if the name used is not used anywere else |
164 // AllocateNameUnique also tests if the name used is not used anywere else |
165 // and if it is used, it returns an error. |
165 // and if it is used, it returns an error. |
166 #define AllocateNameUnique(name, skip) RealAllocateName(name, skip, true) |
166 #define AllocateNameUnique(name, skip) RealAllocateName(name, skip, true) |
167 #define AllocateName(name, skip) RealAllocateName(name, skip, false) |
167 #define AllocateName(name, skip) RealAllocateName(name, skip, false) |
168 StringID RealAllocateName(const byte *name, byte skip, bool check_double); |
168 StringID RealAllocateName(const char *name, byte skip, bool check_double); |
169 void ConvertDayToYMD(YearMonthDay *ymd, uint16 date); |
169 void ConvertDayToYMD(YearMonthDay *ymd, uint16 date); |
170 uint ConvertYMDToDay(uint year, uint month, uint day); |
170 uint ConvertYMDToDay(uint year, uint month, uint day); |
171 uint ConvertIntDate(uint date); |
171 uint ConvertIntDate(uint date); |
172 void CSleep(int milliseconds); |
172 void CSleep(int milliseconds); |
173 |
173 |