Subversion Repositories Games.Carmageddon

Rev

Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 21
Line 3008... Line 3008...
3008
    if (gShadow_level == eShadow_everyone) {
3008
    if (gShadow_level == eShadow_everyone) {
3009
        gShadow_level = eShadow_none;
3009
        gShadow_level = eShadow_none;
3010
    }
3010
    }
3011
    switch (gShadow_level) {
3011
    switch (gShadow_level) {
3012
    case eShadow_none:
3012
    case eShadow_none:
3013
        NewTextHeadupSlot(4, 0, 2000, -4, GetMiscString(kMiscString_NoShadows));
3013
        NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -4, GetMiscString(kMiscString_NoShadows));
3014
        break;
3014
        break;
3015
    case eShadow_us_only:
3015
    case eShadow_us_only:
3016
        NewTextHeadupSlot(4, 0, 2000, -4, GetMiscString(kMiscString_ShadowUnderOwnCar));
3016
        NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -4, GetMiscString(kMiscString_ShadowUnderOwnCar));
3017
        break;
3017
        break;
3018
    case eShadow_us_and_opponents:
3018
    case eShadow_us_and_opponents:
3019
        NewTextHeadupSlot(4, 0, 2000, -4, GetMiscString(kMiscString_ShadowUnderMainCars));
3019
        NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -4, GetMiscString(kMiscString_ShadowUnderMainCars));
3020
        break;
3020
        break;
3021
    case eShadow_everyone:
3021
    case eShadow_everyone:
3022
        NewTextHeadupSlot(4, 0, 2000, -4, GetMiscString(kMiscString_ShadowUnderAllCars));
3022
        NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -4, GetMiscString(kMiscString_ShadowUnderAllCars));
3023
        break;
3023
        break;
3024
    default:
3024
    default:
3025
        return;
3025
        return;
3026
    }
3026
    }
3027
}
3027
}
Line 3088... Line 3088...
3088
void ShadowMode(void) {
3088
void ShadowMode(void) {
3089
    LOG_TRACE("()");
3089
    LOG_TRACE("()");
3090
 
3090
 
3091
    gFancy_shadow = !gFancy_shadow;
3091
    gFancy_shadow = !gFancy_shadow;
3092
    if (gFancy_shadow) {
3092
    if (gFancy_shadow) {
3093
        NewTextHeadupSlot(4, 0, 2000, -4, "Translucent shadow");
3093
        NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -4, "Translucent shadow");
3094
    } else {
3094
    } else {
3095
        NewTextHeadupSlot(4, 0, 2000, -4, "Solid shadow");
3095
        NewTextHeadupSlot(eHeadupSlot_misc, 0, 2000, -4, "Solid shadow");
3096
    }
3096
    }
3097
}
3097
}
3098
 
3098
 
3099
// IDA: int __cdecl SwitchToRealResolution()
3099
// IDA: int __cdecl SwitchToRealResolution()
3100
int SwitchToRealResolution(void) {
3100
int SwitchToRealResolution(void) {