mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10052) -Codechange: Support reserve/activate stage bits of action 7/9 variable 84.
This commit is contained in:
parent
463093d0ae
commit
041c946119
@ -2987,8 +2987,14 @@ static uint32 GetParamVal(byte param, uint32 *cond_val)
|
|||||||
case 0x83: // current climate, 0=temp, 1=arctic, 2=trop, 3=toyland
|
case 0x83: // current climate, 0=temp, 1=arctic, 2=trop, 3=toyland
|
||||||
return _opt.landscape;
|
return _opt.landscape;
|
||||||
|
|
||||||
case 0x84: // GRF loading stage
|
case 0x84: { // GRF loading stage
|
||||||
return (_cur_stage > GLS_INIT) | ((_cur_stage == GLS_ACTIVATION) << 9);
|
uint32 res = 0;
|
||||||
|
|
||||||
|
if (_cur_stage > GLS_INIT) SETBIT(res, 0);
|
||||||
|
if (_cur_stage == GLS_RESERVE) SETBIT(res, 8);
|
||||||
|
if (_cur_stage == GLS_ACTIVATION) SETBIT(res, 9);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
case 0x85: // TTDPatch flags, only for bit tests
|
case 0x85: // TTDPatch flags, only for bit tests
|
||||||
if (cond_val == NULL) {
|
if (cond_val == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user