comparison Player.cpp @ 1035:306ec23b37df

004C1EE5 & other stuff
author Nomad
date Wed, 22 May 2013 14:12:51 +0200
parents aa848c90181f
children ff2d888f8033
comparison
equal deleted inserted replaced
1034:aa848c90181f 1035:306ec23b37df
8074 _449B7E_toggle_bit((unsigned char *)field_1A50, var_value, 1u); 8074 _449B7E_toggle_bit((unsigned char *)field_1A50, var_value, 1u);
8075 break; 8075 break;
8076 case VAR_NPCs2: 8076 case VAR_NPCs2:
8077 pParty->field_709 = 0; 8077 pParty->field_709 = 0;
8078 LOBYTE(pNPCStats->pNewNPCData[var_value].uFlags) |= 0x80u; 8078 LOBYTE(pNPCStats->pNewNPCData[var_value].uFlags) |= 0x80u;
8079 Party__CountHirelings(); 8079 pParty->CountHirelings();
8080 viewparams->bRedrawGameUI = 1; 8080 viewparams->bRedrawGameUI = true;
8081 break; 8081 break;
8082 case VAR_NumSkillPoints: 8082 case VAR_NumSkillPoints:
8083 this->uSkillPoints = var_value; 8083 this->uSkillPoints = var_value;
8084 break; 8084 break;
8085 } 8085 }
9030 _449B7E_toggle_bit((unsigned char *)Dst->field_1A50, val, 1u); 9030 _449B7E_toggle_bit((unsigned char *)Dst->field_1A50, val, 1u);
9031 break; 9031 break;
9032 case VAR_NPCs2: 9032 case VAR_NPCs2:
9033 pParty->field_709 = 0; 9033 pParty->field_709 = 0;
9034 LOBYTE(pNPCStats->pNewNPCData[val].uFlags) |= 0x80u; 9034 LOBYTE(pNPCStats->pNewNPCData[val].uFlags) |= 0x80u;
9035 Party__CountHirelings(); 9035 pParty->CountHirelings();
9036 viewparams->bRedrawGameUI = 1; 9036 viewparams->bRedrawGameUI = true;
9037 break; 9037 break;
9038 case VAR_NumSkillPoints: 9038 case VAR_NumSkillPoints:
9039 Dst->uSkillPoints += val; 9039 Dst->uSkillPoints += val;
9040 break; 9040 break;
9041 } 9041 }
9146 } 9146 }
9147 else 9147 else
9148 { 9148 {
9149 pParty->field_709 = 0; 9149 pParty->field_709 = 0;
9150 LOBYTE(pNPCStats->pNewNPCData[(int)pValue].uFlags) &= 0x7Fu; 9150 LOBYTE(pNPCStats->pNewNPCData[(int)pValue].uFlags) &= 0x7Fu;
9151 Party__CountHirelings(); 9151 pParty->CountHirelings();
9152 viewparams->bRedrawGameUI = 1; 9152 viewparams->bRedrawGameUI = true;
9153 } 9153 }
9154 break; 9154 break;
9155 case 241: 9155 case 241:
9156 if ( (signed int)pNPCStats->uNumNewNPCs > 0 ) 9156 if ( (signed int)pNPCStats->uNumNewNPCs > 0 )
9157 { 9157 {
9173 if ( pParty->pHirelings[0].uProfession == pValue ) 9173 if ( pParty->pHirelings[0].uProfession == pValue )
9174 memset(pParty->pHirelings, 0, 0x4Cu); 9174 memset(pParty->pHirelings, 0, 0x4Cu);
9175 if ( pParty->pHirelings[1].uProfession == pValue ) 9175 if ( pParty->pHirelings[1].uProfession == pValue )
9176 memset(&pParty->pHirelings[1], 0, 0x4Cu); 9176 memset(&pParty->pHirelings[1], 0, 0x4Cu);
9177 pParty->field_709 = 0; 9177 pParty->field_709 = 0;
9178 Party__CountHirelings(); 9178 pParty->CountHirelings();
9179 break; 9179 break;
9180 case 243: 9180 case 243:
9181 v17 = (char *)&this->uSkillPoints; 9181 v17 = (char *)&this->uSkillPoints;
9182 result = *v17; 9182 result = *v17;
9183 if ( (unsigned int)pValue <= *(int *)v17 ) 9183 if ( (unsigned int)pValue <= *(int *)v17 )