(svn r2645) Fix (useless)warning in graph_gui and add brackets around HASBIT in an if statement

This commit is contained in:
Darkvater
2005-07-19 22:29:35 +00:00
parent 57084f2caa
commit 72c33083f5
2 changed files with 3 additions and 4 deletions

View File

@@ -1150,7 +1150,6 @@ static void SignListWndProc(Window *w, WindowEvent *e)
{
switch (e->event) {
case WE_PAINT: {
uint32 i;
int y = 16; // offset from top of widget
if (_sign_sort_dirty)
@@ -1167,8 +1166,8 @@ static void SignListWndProc(Window *w, WindowEvent *e)
return;
}
{
SignStruct *ss;
{ const SignStruct *ss;
uint16 i;
/* Start drawing the signs */
for (i = w->vscroll.pos; i < w->vscroll.cap + w->vscroll.pos && i < w->vscroll.count; i++) {