File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2931,6 +2931,13 @@ void load_classes(void) {
2931
2931
case OP_DENSITY :
2932
2932
parse_density_block ();
2933
2933
break ;
2934
+ case OP_TRIGGER :
2935
+ nxttok ();
2936
+ if (tokent != TF_INT ) ParseError ("Number expected\n" );
2937
+ trigmode = tokenv ;
2938
+ nxttok ();
2939
+ if (tokent != TF_CLOSE ) ParseError ("Expected close parenthesis\n" );
2940
+ break ;
2934
2941
default :
2935
2942
ParseError ("Invalid top level definition: %s\n" ,tokenstr );
2936
2943
}
Original file line number Diff line number Diff line change @@ -343,6 +343,9 @@ these definitions are optional.)
343
343
be 0 to 7, the length is the number of images in the sequence, and the
344
344
speed is the number of centiseconds between frames.
345
345
346
+ (Trigger <number>)
347
+ Not defined yet. (TODO)
348
+
346
349
(Volume <number>)
347
350
Define the maximum allowed volume for an object to move diagonally
348
351
between two other objects. The default value is 10000.
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Uint8 no_dead_anim;
44
44
Uint32 max_trigger ;
45
45
Uint8 conn_option ;
46
46
Sint32 gameover_score ;
47
+ Uint32 trigmode ;
47
48
48
49
typedef struct {
49
50
Uint16 msg ;
Original file line number Diff line number Diff line change @@ -328,6 +328,7 @@ extern Uint8 no_dead_anim;
328
328
extern Uint32 max_trigger ;
329
329
extern Uint8 conn_option ;
330
330
extern Sint32 gameover_score ;
331
+ extern Uint32 trigmode ;
331
332
332
333
const unsigned char * value_string_ptr (Value v );
333
334
void pfunlink (Uint32 n );
You can’t perform that action at this time.
0 commit comments