nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
87 stars 18 forks source link

get/set_event_par not considering all functions with constant returns #350

Closed JackWilliams-FractureSounds closed 1 year ago

JackWilliams-FractureSounds commented 1 year ago
on init
    declare const GRAIN_BLIP_EVT_STORAGE := 1
    declare const EVENT_STATE.RELEASE := 2
    declare const GRAIN_EVENT_PAR0 := 4
end on
on note
    if get_event_par_arr(EVENT_ID, EVENT_PAR_CUSTOM,GRAIN_BLIP_EVT_STORAGE) # 0 
        set_event_par(get_event_par_arr(EVENT_ID, EVENT_PAR_CUSTOM,GRAIN_BLIP_EVT_STORAGE), EVENT_PAR_3, ENGINE_UPTIME) //PROBLEM
        set_event_par_arr(get_event_par_arr(EVENT_ID, EVENT_PAR_CUSTOM,GRAIN_BLIP_EVT_STORAGE), EVENT_PAR_CUSTOM, EVENT_STATE.RELEASE, GRAIN_EVENT_PAR0)
        set_event_par(EVENT_ID, ENGINE_PAR_VOLUME, ENGINE_UPTIME)
    end if
end on

https://discord.com/channels/752870396599992341/752874062211973151/1095652214204289074