*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1495 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-12-26 08:44:59 +00:00
parent f3f363ab0c
commit a46fa45901
25 changed files with 133 additions and 124 deletions
+2 -3
View File
@@ -131,7 +131,7 @@ struct releaseaction
};
vector<releaseaction> releaseactions;
char *addreleaseaction(char *s)
char *addreleaseaction(const char *s)
{
if(!keypressed) return NULL;
releaseaction &ra = releaseactions.add();
@@ -152,8 +152,7 @@ void saycommand(char *init) // turns input to the comman
SDL_EnableUNICODE(saycommandon = (init!=NULL));
setscope(false);
if(!editmode) keyrepeat(saycommandon);
if(!init) init = "";
s_strcpy(commandbuf, init);
s_strcpy(commandbuf, init ? init : "");
commandpos = -1;
player1->stopmoving(); // prevent situations where player presses direction key, open command line, then releases key
}