Some more patches from Sir Raorn

This commit is contained in:
Jacobo Tarrío
2000-09-01 16:23:15 +00:00
parent 2fa38e497b
commit b6e2ea1384
5 changed files with 27 additions and 8 deletions

View File

@@ -991,6 +991,12 @@ gkey kbxget_raw(int mode) {
k = 0x8100;
else if(isalpha(key2))
k = (scancode_table[key2]);
else if(key2 == '\010')
k = Key_A_BS;
else if(key2 == '\011')
k = Key_A_Tab;
else if(key2 == '\015')
k = Key_A_Ent;
else {
// No correct Alt-sequence; ungetch last key and return Esc
if (mode != 1)
@@ -1305,6 +1311,8 @@ gkey kbxget_raw(int mode) {
shifts = 0;
if(shifts & ALT)
k = Key_A_BS;
else if(shifts & GCTRL)
k = Key_C_BS;
}
#endif

View File

@@ -145,20 +145,25 @@ void gareafile::ReadCrashmail(char* tag) {
break;
case CRC_AREA:
case CRC_NETMAIL:
case CRC_LOCALAREA:
case CRC_LOCALAREA:
if(aa.type != 0xff) {
if(not unconfirmed)
AddNewArea(aa);
aa.reset();
}
aa.type = (crc16 == CRC_NETMAIL) ? GMB_NET : (crc16 == CRC_LOCALAREA) ? GMB_LOCAL : GMB_ECHO;
switch(aa.type) {
case GMB_NET:
switch(crc16) {
case CRC_NETMAIL:
aa.type = GMB_NET;
aa.attr = attribsnet;
break;
case GMB_ECHO:
case CRC_AREA:
aa.type = GMB_ECHO;
aa.attr = attribsecho;
break;
case CRC_LOCALAREA:
aa.type = GMB_LOCAL;
aa.attr = attribslocal;
break;
}
unconfirmed = false;
jbstrcpy(tmp, buf, 100, &jbcpos);