equal
deleted
inserted
replaced
1420 */ |
1420 */ |
1421 if (!IsGeneratingWorld()) _current_player = _local_player; |
1421 if (!IsGeneratingWorld()) _current_player = _local_player; |
1422 |
1422 |
1423 // Setup event |
1423 // Setup event |
1424 e.event = WE_KEYPRESS; |
1424 e.event = WE_KEYPRESS; |
1425 e.we.keypress.ascii = GB(key, 0, 8); |
1425 e.we.keypress.key = GB(key, 0, 16); |
1426 e.we.keypress.keycode = GB(key, 16, 16); |
1426 e.we.keypress.keycode = GB(key, 16, 16); |
1427 e.we.keypress.cont = true; |
1427 e.we.keypress.cont = true; |
1428 |
1428 |
1429 // check if we have a query string window open before allowing hotkeys |
1429 // check if we have a query string window open before allowing hotkeys |
1430 if (FindWindowById(WC_QUERY_STRING, 0) != NULL || |
1430 if (FindWindowById(WC_QUERY_STRING, 0) != NULL || |