diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-09 10:46:42 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-09 10:46:42 (GMT) |
| commit | 798c78b04eda4bf8bf9b9dc4997692e0010eb93c (patch) | |
| tree | ed3ce2fa2a3a29e09b0fe8d6dae955c5e9a66dad /src/game/GameView.cpp | |
| parent | c88079d084f2f3b7ec891da22f8c497cd2652853 (diff) | |
| download | powder-798c78b04eda4bf8bf9b9dc4997692e0010eb93c.zip powder-798c78b04eda4bf8bf9b9dc4997692e0010eb93c.tar.gz | |
Add missing GOL data
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index e6e6445..d27230b 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -952,5 +952,8 @@ void GameView::OnDraw() else sampleInfo << "Empty"; - g->drawtext(XRES+BARSIZE-(10+Graphics::textwidth((char*)sampleInfo.str().c_str())), 5, (const char*)sampleInfo.str().c_str(), 255, 255, 255, 255); + if(sample.ctype && sample.ctype>0 && sample.ctype<PT_NUM) + sampleInfo << ", Ctype: " << c->ElementResolve(sample.ctype); + + g->drawtext(XRES+BARSIZE-(10+Graphics::textwidth((char*)sampleInfo.str().c_str())), 10, (const char*)sampleInfo.str().c_str(), 255, 255, 255, 255); } |
