diff options
author | michi_cc <michi_cc@openttd.org> | 2008-11-17 00:41:58 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2008-11-17 00:41:58 +0000 |
commit | 2ed0c72ec5152c6f9c3aa0125d4108004b3105bd (patch) | |
tree | 31b9f748d342a2419e04c7e628fdeff5098f08ac /src | |
parent | f4fd895631ba0d34835fc8e057a17c000e19f1f6 (diff) | |
download | openttd-2ed0c72ec5152c6f9c3aa0125d4108004b3105bd.tar.xz |
(svn r14587) -Cleanup: Fix some old comments. Bits are not bytes.
Diffstat (limited to 'src')
-rw-r--r-- | src/oldloader.cpp | 8 | ||||
-rw-r--r-- | src/saveload.h | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 708ab3a7c..49482bb6d 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -59,7 +59,7 @@ enum OldChunkType { OC_NULL = 1, OC_CHUNK = 2, OC_ASSERT = 3, - /* 8 bytes allocated (256 max) */ + /* 8 bits allocated (256 max) */ OC_VAR_I8 = 1 << 8, OC_VAR_U8 = 2 << 8, @@ -68,7 +68,7 @@ enum OldChunkType { OC_VAR_I32 = 5 << 8, OC_VAR_U32 = 6 << 8, OC_VAR_I64 = 7 << 8, - /* 8 bytes allocated (256 max) */ + /* 8 bits allocated (256 max) */ OC_FILE_I8 = 1 << 16, OC_FILE_U8 = 2 << 16, @@ -76,7 +76,7 @@ enum OldChunkType { OC_FILE_U16 = 4 << 16, OC_FILE_I32 = 5 << 16, OC_FILE_U32 = 6 << 16, - /* 8 bytes allocated (256 max) */ + /* 8 bits allocated (256 max) */ OC_INT8 = OC_VAR_I8 | OC_FILE_I8, OC_UINT8 = OC_VAR_U8 | OC_FILE_U8, @@ -93,7 +93,7 @@ enum OldChunkType { */ OC_DEREFERENCE_POINTER = 1 << 31, - OC_END = 0 ///< End of the whole chunk, all 32bits set to zero + OC_END = 0 ///< End of the whole chunk, all 32 bits set to zero }; DECLARE_ENUM_AS_BIT_SET(OldChunkType); diff --git a/src/saveload.h b/src/saveload.h index f32f15222..68e55afa7 100644 --- a/src/saveload.h +++ b/src/saveload.h @@ -93,10 +93,10 @@ enum { * certain characteristics about the variable it refers to. For example * SLE_FILE_* gives the size(type) as it would be in the savegame and * SLE_VAR_* the size(type) as it is in memory during runtime. These are - * the first 8 bytes (0-3 SLE_FILE, 4-7 SLE_VAR). - * Bytes 8-15 are reserved for various flags as explained below */ + * the first 8 bits (0-3 SLE_FILE, 4-7 SLE_VAR). + * Bits 8-15 are reserved for various flags as explained below */ enum VarTypes { - /* 4 bytes allocated a maximum of 16 types for NumberType */ + /* 4 bits allocated a maximum of 16 types for NumberType */ SLE_FILE_I8 = 0, SLE_FILE_U8 = 1, SLE_FILE_I16 = 2, @@ -109,7 +109,7 @@ enum VarTypes { SLE_FILE_STRING = 9, /* 6 more possible file-primitives */ - /* 4 bytes allocated a maximum of 16 types for NumberType */ + /* 4 bits allocated a maximum of 16 types for NumberType */ SLE_VAR_BL = 0 << 4, SLE_VAR_I8 = 1 << 4, SLE_VAR_U8 = 2 << 4, @@ -125,7 +125,7 @@ enum VarTypes { SLE_VAR_STR = 12 << 4, ///< string pointer SLE_VAR_STRQ = 13 << 4, ///< string pointer enclosed in quotes SLE_VAR_NAME = 14 << 4, ///< old custom name to be converted to a char pointer - /* 2 more possible memory-primitives */ + /* 1 more possible memory-primitives */ /* Shortcut values */ SLE_VAR_CHAR = SLE_VAR_I8, @@ -158,7 +158,7 @@ enum VarTypes { SLE_STR = SLE_STRING, SLE_STRQ = SLE_STRINGQUOTE, - /* 8 bytes allocated for a maximum of 8 flags + /* 8 bits allocated for a maximum of 8 flags * Flags directing saving/loading of a variable */ SLF_SAVE_NO = 1 << 8, ///< do not save with savegame, basically client-based SLF_CONFIG_NO = 1 << 9, ///< do not save to config file |