add2bind & numconlines
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6527 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+2
-4
@@ -253,6 +253,7 @@ addOnQuit = [ add2alias onQuit $arg1 ]
|
||||
checkinit = [ if (> $numargs 0) [ if (! (checkalias $arg1)) [ $arg1 = ""; if (> $numargs 1) [ add2alias $arg1 $arg2 ] ] ] ]
|
||||
aliasinit = [ loop ail (listlen $arg1) [ if (< $numargs 2) [ checkinit (at $arg1 $ail) ] [ checkinit (at $arg1 $ail) $arg2 ] ] ]
|
||||
add2list = [ if (strcmp "" (getalias $arg1)) [ $arg1 = $arg2 ] [ $arg1 = (concat (getalias $arg1) $arg2) ] ]
|
||||
add2bind = [ if (! (strstr (keybind $arg1) $arg2)) [ bind $arg1 (format "%1; %2" (keybind $arg1) $arg2) ] ]
|
||||
rndmap = [ result (at $defaultmaps (rnd (listlen $defaultmaps))) ]
|
||||
|
||||
// rrnd - Returns a ranged random integer.
|
||||
@@ -406,9 +407,6 @@ run dyngamma
|
||||
run survival
|
||||
run tutorial
|
||||
|
||||
|
||||
persistidents 1
|
||||
|
||||
execdir scripts
|
||||
|
||||
persistidents 0
|
||||
persistidents 0
|
||||
@@ -9,6 +9,7 @@ VARP(fullconsize, 0, 40, 100);
|
||||
VARP(consize, 0, 6, 100);
|
||||
VARP(confade, 0, 20, 60);
|
||||
VAR(conopen, 0, 0, 1);
|
||||
VAR(numconlines, 0, 0, 1);
|
||||
|
||||
struct console : consolebuffer<cline>
|
||||
{
|
||||
@@ -28,7 +29,7 @@ struct console : consolebuffer<cline>
|
||||
conopen = fullconsole;
|
||||
}
|
||||
|
||||
void addline(const char *sf) { consolebuffer<cline>::addline(sf, totalmillis); }
|
||||
void addline(const char *sf) { consolebuffer<cline>::addline(sf, totalmillis); numconlines++; }
|
||||
|
||||
void render()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user