diff options
| author | Torbjörn Andersson | 2003-10-10 16:14:52 +0000 | 
|---|---|---|
| committer | Torbjörn Andersson | 2003-10-10 16:14:52 +0000 | 
| commit | ade93aabffb38f96fb70856111c742b91e8c71ae (patch) | |
| tree | 3a7b64c9d856a27647408685eb3f8a5f949290e3 /sword2/events.cpp | |
| parent | bd5f50496a450f6e7b5363923e12adf5787b2e92 (diff) | |
| download | scummvm-rg350-ade93aabffb38f96fb70856111c742b91e8c71ae.tar.gz scummvm-rg350-ade93aabffb38f96fb70856111c742b91e8c71ae.tar.bz2 scummvm-rg350-ade93aabffb38f96fb70856111c742b91e8c71ae.zip | |
cleanup
svn-id: r10728
Diffstat (limited to 'sword2/events.cpp')
| -rw-r--r-- | sword2/events.cpp | 16 | 
1 files changed, 7 insertions, 9 deletions
| diff --git a/sword2/events.cpp b/sword2/events.cpp index 5a7ec32583..0174715bc3 100644 --- a/sword2/events.cpp +++ b/sword2/events.cpp @@ -74,12 +74,12 @@ int32 FN_request_speech(int32 *params) {  	if (j == MAX_events)  		Con_fatal_error("FN_set_event out of event slots"); -	//found that slot +	// found that slot -	//id of person to stop +	// id of person to stop  	event_list[j].id = params[0]; -	//full script id to interact with - megas run their own 7th script +	// full script id to interact with - megas run their own 7th script  	event_list[j].interact_id = (params[0] * 65536) + 6;  	return IR_CONT; @@ -276,15 +276,13 @@ int32 FN_pause_for_event(int32 *params) {  	}  } -uint32 Check_event_waiting(void) { -	// returns yes/no - +bool Check_event_waiting(void) {  	for (int j = 0; j < MAX_events; j++) {  		if (event_list[j].id == ID) -			return 1; +			return true;  	} -	return 0; +	return false;  }  int32 FN_clear_event(int32 *params) { @@ -334,7 +332,7 @@ int32 FN_start_event(int32 *params) {  	// oh dear - stop the system  	Con_fatal_error("FN_start_event can't find event for id %d", ID); -	return 0;	//never called - but lets stop them bloody errors +	return 0;	// never called - but lets stop them bloody errors  }  void Kill_all_ids_events(uint32 id) { | 
