summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-02-09 21:00:07 +0100
committererihel <erihel@gmail.com>2013-02-09 21:00:07 +0100
commit6f64770714c20a24a2edfd55777e05a047e61d0e (patch)
tree6a9119eb5714008e3573c179cddfbb1690f43d4c /src/script
parent209c6412ae149cc7c503fd7da384f344a830423c (diff)
downloadcolobot-6f64770714c20a24a2edfd55777e05a047e61d0e.tar.gz
colobot-6f64770714c20a24a2edfd55777e05a047e61d0e.tar.bz2
colobot-6f64770714c20a24a2edfd55777e05a047e61d0e.zip
* Fixes to ingame editor
* Fixes to editor window. It's now possible to resize, move and press buttons
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp
index f58e66d..50ce830 100644
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -3346,7 +3346,6 @@ void CScript::ColorizeScript(Ui::CEdit* edit)
cursor1 = bt->GetStart();
cursor2 = bt->GetEnd();
-
color = Gfx::FONT_HIGHLIGHT_NONE;
if ( type >= TokenKeyWord && type < TokenKeyWord+100 )
{
@@ -3376,7 +3375,7 @@ void CScript::ColorizeScript(Ui::CEdit* edit)
color =Gfx::FONT_HIGHLIGHT_CONST;
}
- if ( cursor1 < cursor2 && color != 0 )
+ if ( cursor1 < cursor2 && color != Gfx::FONT_HIGHLIGHT_NONE )
{
edit->SetFormat(cursor1, cursor2, color);
}