CharEd: Unused variables

This commit is contained in:
Sylae Corell
2014-08-01 12:27:19 -06:00
parent 8be25a04aa
commit af39e4826e
3 changed files with 1 additions and 11 deletions

View File

@@ -241,7 +241,6 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR, int nCm
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc;
PAINTSTRUCT ps;
POINT press;
HMENU menu;
@@ -298,7 +297,7 @@ HMENU menu;
return 0;
case WM_PAINT:
hdc = BeginPaint(hwnd,&ps);
BeginPaint(hwnd,&ps);
EndPaint(hwnd,&ps);
if (hwnd != mainPtr)
check_cd_event(hwnd,message,wParam,lParam);

View File

@@ -72,17 +72,12 @@ Boolean handle_action(POINT the_point, UINT wparam, LONG lparam )
short i;
Boolean to_return = FALSE;
Boolean ctrl_key = FALSE;
Boolean right_button = FALSE;
if (lparam != -1) {
the_point.x -= ulx;
the_point.y -= uly;
}
if (lparam == -2)
right_button = TRUE;
if (MK_CONTROL & wparam)
ctrl_key = TRUE;
if (file_in_mem == FALSE)
return FALSE;

View File

@@ -111,7 +111,6 @@ void file_initialize()
void load_file()
{
long file_size;
HANDLE file_id;
short i, j;
Boolean town_restore = FALSE;
@@ -145,7 +144,6 @@ void load_file()
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (file_id == INVALID_HANDLE_VALUE) return;
file_size = sizeof(party_record_type);
for (i = 0; i < 3; i++)
@@ -731,7 +729,6 @@ void save_file(short mode)
short flag;
short *store;
party_record_type *party_ptr;
setup_save_type *setup_ptr;
pc_record_type *pc_ptr;
char *party_encryptor;
@@ -996,7 +993,6 @@ void save_file(short mode)
party_encryptor[count] ^= 0x5C;
// SAVE SETUP
setup_ptr = &setup_save;
if (WriteFile(file_id, &setup_save, sizeof(setup_save_type), &bytes, NULL) == FALSE)
{
CloseHandle(file_id);