| 270 | |
| 271 | |
| 272 | void Micropolis::setYear(int year) |
| 273 | { |
| 274 | // Must prevent year from going negative, since it screws up the non-floored modulo arithmetic. |
| 275 | if (year < startingYear) { |
| 276 | year = startingYear; |
| 277 | } |
| 278 | |
| 279 | year = (year - startingYear) - (cityTime / 48); |
| 280 | cityTime += year * 48; |
| 281 | doTimeStuff(); |
| 282 | } |
| 283 | |
| 284 | |
| 285 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected