summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-03-18 18:02:09 (GMT)
committer Lieuwe <lieuwemo@gmail.com>2011-03-18 18:02:09 (GMT)
commit96959503cd094e09c2d26f298d79cfde34b58491 (patch)
tree2c206db91279d6767ecb98107ba60f2dc60142c3 /src/interface.c
parent8b22ca5064d2ea90b1b55d855a8a9b3809fd4137 (diff)
downloadpowder-96959503cd094e09c2d26f298d79cfde34b58491.zip
powder-96959503cd094e09c2d26f298d79cfde34b58491.tar.gz
now warns about a disabled python console.
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/interface.c b/src/interface.c
index 9d3fcc8..72320aa 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -15,6 +15,8 @@
#include <interface.h>
#include <misc.h>
+
+//char pyready=1;
SDLMod sdl_mod;
int sdl_key, sdl_wheel, sdl_caps=0, sdl_ascii, sdl_zoom_trig=0;
@@ -3890,8 +3892,10 @@ char *console_ui(pixel *vid_buf,char error[255],char console_more) {
//clearrect(vid_buf, 0, 0, XRES+BARSIZE, 220);//anyway to make it transparent?
memcpy(vid_buf,old_buf,(XRES+BARSIZE)*YRES*PIXELSIZE);
draw_line(vid_buf, 0, 219, XRES+BARSIZE-1, 219, 228, 228, 228, XRES+BARSIZE);
- drawtext(vid_buf, 15, 15, "Welcome to The Powder Toy console v.3 (by cracker64, python by Doxin)" //TODO: help command
- ,255, 255, 255, 255);
+ if(pyready)
+ drawtext(vid_buf, 15, 15, "Welcome to The Powder Toy console v.3 (by cracker64, python by Doxin)",255, 255, 255, 255);
+ else
+ drawtext(vid_buf, 15, 15, "Welcome to The Powder Toy console v.3 (by cracker64, python disabled)",255, 0, 0, 255);
cc = 0;
currentcommand = last_command;