diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-19 13:46:01 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-19 14:32:50 -0700 |
commit | 2bbc6dd25a227a747ef6bc7f83637b57c10d9af7 (patch) | |
tree | 696a88089bf48709bece93c8b96ac7550bf090d8 /crawl-ref/source/beam.cc | |
parent | cf2b911c89d554a8f5f72156cef48b5f0fefd797 (diff) | |
download | crawl-ref-2bbc6dd25a227a747ef6bc7f83637b57c10d9af7.tar.gz crawl-ref-2bbc6dd25a227a747ef6bc7f83637b57c10d9af7.zip |
win32: eliminate need for WIN32TILES/WIN32CONSOLE macros
Instead of
defined(WIN32CONSOLE)
we should use:
defined(TARGET_OS_WINDOWS) && !defined(USE_TILE)
As well as replace
defined(WIN32TILES)
with:
defined(TARGET_OS_WINDOWS) && defined(USE_TILE)
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index d2cb9b3db8..28f181a08b 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -2081,7 +2081,7 @@ void bolt::do_fire() choose_ray(); } -#ifdef WIN32CONSOLE +#if defined(TARGET_OS_WINDOWS) && !defined(USE_TILE) // Before we start drawing the beam, turn buffering off. bool oldValue = true; if (!is_tracer) @@ -2193,7 +2193,7 @@ void bolt::do_fire() } // That's it! -#ifdef WIN32CONSOLE +#if defined(TARGET_OS_WINDOWS) && !defined(USE_TILE) set_buffering(oldValue); #endif } @@ -5518,7 +5518,7 @@ bool bolt::explode(bool show_more, bool hole_in_the_middle) exp_map.init(INT_MAX); determine_affected_cells(exp_map, coord_def(), 0, r, true, true); -#ifdef WIN32CONSOLE +#if defined(TARGET_OS_WINDOWS) && !defined(USE_TILE) // turn buffering off bool oldValue = true; if (!is_tracer) @@ -5583,7 +5583,7 @@ bool bolt::explode(bool show_more, bool hole_in_the_middle) } } -#ifdef WIN32CONSOLE +#if defined(TARGET_OS_WINDOWS) && !defined(USE_TILE) if (!is_tracer) set_buffering(oldValue); #endif |