fixed some issues found by cppcheck
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6740 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -154,7 +154,7 @@ int getCONlength(int n)
|
||||
/** WIP ALERT */
|
||||
int rendercommand_wip(int x, int y, int w)
|
||||
{
|
||||
int width, height;
|
||||
int width, height = 0;
|
||||
if( strlen(cmdline.buf) > 0 )
|
||||
{
|
||||
int ctx = -1;
|
||||
@@ -178,7 +178,7 @@ int rendercommand_wip(int x, int y, int w)
|
||||
vector<keym> keyms;
|
||||
|
||||
const char *keycmds[keym::NUMACTIONS] = { "bind", "specbind", "editbind" };
|
||||
inline const char *keycmd(int type) { return type >= 0 && type < keym::NUMACTIONS ? keycmds[type] : ""; }
|
||||
inline const char *keycmd(int type) { return type >= 0 && type < keym::NUMACTIONS ? keycmds[type] : ""; }
|
||||
|
||||
void keymap(char *code, char *key)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user