Mblackwell, on 13 May 2011 - 04:29 PM, said:
I'd be curious to see AMCWEPS.CON since I'm definitely not getting any errors.
Here's an example of one of the states Eduke has a problem with:
state displaytemp_jplasma
setvar x 245
subvarvar x WEAPSWAYX
addvarvar x weapon_xoffset
subvarvar x looking_angSR1
setvar y 240
subvarvar y WEAPSWAYY
addvarvar y looking_arc
subvarvar y gun_pos
switch weaponcount
case 1
addvar y 5
addvar x 5
case 2
subvar x 5
subvar y 5
case 3
addvar y 5
addvar x 5
case 4
case 0
getplayer[THISACTOR].weapon_pos DISPLAY_TEMP2
mulvar DISPLAY_TEMP2 -20
rotatesprite x y NORMALSIZE DISPLAY_TEMP2 12104 shade pal 1024 0 0 xdim ydim
getplayer[THISACTOR].random_club_frame DISPLAY_TEMP
sin DISPLAY_TEMP DISPLAY_TEMP
divvar DISPLAY_TEMP 1024 // 2^10
addvar DISPLAY_TEMP 16
rotatesprite x y NORMALSIZE DISPLAY_TEMP2 12105 DISPLAY_TEMP 0 1024 0 0 xdim ydim
break
endswitch
ends
This code works in the earlier snapshot I've used, it works for a long time. It seems the compiler's having a problem because it's in a state or something.