Change: rework GLOG chunk to be more like the rest

Basically it is very similar to Vehicles, where there first is
a type field, followed by data of that type. So this commit makes
it looks like how Vehicles solved that.
This removes a lot of custom "keeping track of length" stuff.
This commit is contained in:
Patric Stout
2021-06-12 17:12:35 +02:00
committed by Patric Stout
parent 88edfd4ef1
commit 4c4b55ecbd
3 changed files with 294 additions and 124 deletions

View File

@@ -13,7 +13,7 @@
#include "newgrf_config.h"
/** The actions we log. */
enum GamelogActionType {
enum GamelogActionType : uint8 {
GLAT_START, ///< Game created
GLAT_LOAD, ///< Game loaded
GLAT_GRF, ///< GRF changed