projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060407-2-src
[rocksndiamonds.git]
/
src
/
libgame
/
gadgets.c
diff --git
a/src/libgame/gadgets.c
b/src/libgame/gadgets.c
index 00a41a8b94d18fc73c970398e745b3d507aa67f4..ede8cfc7f54cad4888b0209ef96a99db72a93f24 100644
(file)
--- a/
src/libgame/gadgets.c
+++ b/
src/libgame/gadgets.c
@@
-1464,7
+1464,7
@@
boolean HandleGadgets(int mx, int my, int button)
{
CheckRangeOfNumericInputGadget(gi);
{
CheckRangeOfNumericInputGadget(gi);
- if (
strcmp(gi->textinput.value, gi->textinput.last_value) != 0
)
+ if (
!strEqual(gi->textinput.last_value, gi->textinput.value)
)
strcpy(gi->textinput.last_value, gi->textinput.value);
else
gadget_changed = FALSE;
strcpy(gi->textinput.last_value, gi->textinput.value);
else
gadget_changed = FALSE;
@@
-1911,7
+1911,7
@@
boolean HandleGadgetsKeyInput(Key key)
{
CheckRangeOfNumericInputGadget(gi);
{
CheckRangeOfNumericInputGadget(gi);
- if (
strcmp(gi->textinput.value, gi->textinput.last_value) != 0
)
+ if (
!strEqual(gi->textinput.last_value, gi->textinput.value)
)
strcpy(gi->textinput.last_value, gi->textinput.value);
else
gadget_changed = FALSE;
strcpy(gi->textinput.last_value, gi->textinput.value);
else
gadget_changed = FALSE;