(svn r20420) -Codechange: Add TileContext enum instead of using a bool.

This commit is contained in:
frosch
2010-08-09 07:10:42 +00:00
parent 67c21f7e01
commit 48c5091a7c
7 changed files with 28 additions and 20 deletions

View File

@@ -22,6 +22,7 @@
#include "newgrf_callbacks.h"
#include "newgrf_generic.h"
#include "newgrf_storage.h"
#include "newgrf_commons.h"
/**
* Gets the value of a so-called newgrf "register".
@@ -346,7 +347,7 @@ struct ResolverObject {
} generic;
struct {
TileIndex tile;
bool upper_halftile; ///< Are we resolving sprites for the upper halftile?
TileContext context; ///< Are we resolving sprites for the upper halftile, or on a bridge?
} routes;
struct {
const struct Station *st; ///< Station of the airport for which the callback is run, or NULL for build gui.