equal
deleted
inserted
replaced
500 * (the same ID, but different MD5 hash) |
500 * (the same ID, but different MD5 hash) |
501 * @param newg new (updated) GRF |
501 * @param newg new (updated) GRF |
502 */ |
502 */ |
503 void GamelogGRFCompatible(const GRFIdentifier *newg) |
503 void GamelogGRFCompatible(const GRFIdentifier *newg) |
504 { |
504 { |
505 assert(_gamelog_action_type == GLAT_LOAD); |
505 assert(_gamelog_action_type == GLAT_LOAD || _gamelog_action_type == GLAT_GRF); |
506 |
506 |
507 LoggedChange *lc = GamelogChange(GLCT_GRFCOMPAT); |
507 LoggedChange *lc = GamelogChange(GLCT_GRFCOMPAT); |
508 if (lc == NULL) return; |
508 if (lc == NULL) return; |
509 |
509 |
510 memcpy(&lc->grfcompat, newg, sizeof(GRFIdentifier)); |
510 memcpy(&lc->grfcompat, newg, sizeof(GRFIdentifier)); |