Skip to content

Commit

Permalink
Cleanup: spurious TODOs in newgrf.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddi-z committed Feb 28, 2019
1 parent adb50ce commit 49ecd7d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/newgrf.cpp
Expand Up @@ -5828,7 +5828,6 @@ static void GraphicsNew(ByteReader *buf)
* B graphics-type What set of graphics the sprites define.
* E num-sprites How many sprites are in this set?
* V other data Graphics type specific data. Currently unused. */
/* TODO */

uint8 type = buf->ReadByte();
uint16 num = buf->ReadExtendedByte();
Expand Down Expand Up @@ -6216,7 +6215,6 @@ static void SkipIf(ByteReader *buf)
* B condition-type
* V value
* B num-sprites */
/* TODO: More params. More condition types. */
uint32 cond_val = 0;
uint32 mask = 0;
bool result;
Expand Down Expand Up @@ -6902,12 +6900,6 @@ static void ParamSet(ByteReader *buf)
src2 = (src2 == 0xFF) ? data : GetParamVal(src2, NULL);
}

/* TODO: You can access the parameters of another GRF file by using
* source2=FE, source1=the other GRF's parameter number and data=GRF
* ID. This is only valid with operation 00 (set). If the GRF ID
* cannot be found, a value of 0 is used for the parameter value
* instead. */

uint32 res;
switch (oper) {
case 0x00:
Expand Down Expand Up @@ -7008,7 +7000,7 @@ static void ParamSet(ByteReader *buf)
break;
}

/* @todo implement */
/* not implemented */
case 0x93: // Tile refresh offset to left
case 0x94: // Tile refresh offset to right
case 0x95: // Tile refresh offset upwards
Expand Down Expand Up @@ -8237,7 +8229,6 @@ static void ResetNewGRFErrors()

/**
* Reset all NewGRF loaded data
* TODO
*/
void ResetNewGRFData()
{
Expand Down

0 comments on commit 49ecd7d

Please sign in to comment.