projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75280c5
)
removed redundant initialization
author
Holger Schemel
<info@artsoft.org>
Thu, 20 Oct 2022 16:17:48 +0000
(18:17 +0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 20 Oct 2022 16:17:48 +0000
(18:17 +0200)
This issue was found by Cppcheck (static C/C++ code analysis tool).
src/editor.c
patch
|
blob
|
history
diff --git
a/src/editor.c
b/src/editor.c
index b2bb56b958ff47fa38df4693d2955a5b44c0b828..4cbaf83acd07d910bc87cab4b4b2155fffa47879 100644
(file)
--- a/
src/editor.c
+++ b/
src/editor.c
@@
-12621,7
+12621,7
@@
static int DrawLevelText(int sx, int sy, char letter, int mode)
static int start_sx;
static int last_sx, last_sy;
static boolean typing = FALSE;
- int letter_element
= EL_CHAR_ASCII0 + letter
;
+ int letter_element;
int lx = 0, ly = 0;
// map lower case letters to upper case and convert special characters