Fixing lss nade spawn, some HUDEXTRAS stuff, and temporarily reverting the cursor related functions to 1.0.4 ones

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5076 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-27 02:21:37 +00:00
parent 6e34f34590
commit d174d82e1d
9 changed files with 198 additions and 87 deletions
+16 -1
View File
@@ -112,6 +112,20 @@ void conoutf(const char *s, ...)
con.addline(sf);
}
/** This is the 1.0.4 function
It will substituted by rendercommand_wip
I am putting this temporarily here because it is very difficult to chat in game with the current cursor behavior,
and chatting in this test period is extremelly important : Brahma */
int rendercommand(int x, int y, int w)
{
defformatstring(s)("> %s", cmdline.buf);
int width, height;
text_bounds(s, width, height, w);
y -= height - FONTH;
draw_text(s, x, y, 0xFF, 0xFF, 0xFF, 0xFF, cmdline.pos>=0 ? cmdline.pos+2 : (int)strlen(s), w);
return height;
}
const char *getCONprefix(int n)
{
const char* CONpreSTR[] = {
@@ -128,7 +142,8 @@ int getCONlength(int n)
return strlen(CURpreSTR);
}
int rendercommand(int x, int y, int w)
/** WIP ALERT */
int rendercommand_wip(int x, int y, int w)
{
int width, height;
if( strlen(cmdline.buf) > 0 )