mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-30 16:00:06 -04:00
scripts: resolve 917 instances of -Wunused-variable
scripts/LEVEL0.cpp:1036:27: warning: unused variable "event_data" [-Wunused-variable] and a lot more.
This commit is contained in:
@@ -1020,8 +1020,6 @@ int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
dfRestore(event_data->fileptr);
|
||||
} break;
|
||||
case EVT_INTERVAL: {
|
||||
tOSIRISEVTINTERVAL *event_data = &data->evt_interval;
|
||||
|
||||
// Script 008: Fire Sphere Room
|
||||
if ((qUserFlag(2) == false) && (qUserFlag(3) == false)) {
|
||||
aRoomSetDamage(Room_indexes[7], 1.000000f, 1);
|
||||
@@ -1033,8 +1031,6 @@ int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
}
|
||||
} break;
|
||||
case EVT_LEVELSTART: {
|
||||
tOSIRISEVTLEVELSTART *event_data = &data->evt_levelstart;
|
||||
|
||||
ClearGlobalActionCtrs();
|
||||
dfInit();
|
||||
|
||||
@@ -1476,8 +1472,6 @@ int16_t TriggerScript_000C::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
int16_t TriggerScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
switch (event) {
|
||||
case EVT_COLLIDE: {
|
||||
tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
|
||||
|
||||
// Script 016: Goal Zero Completed & Waypoint 3
|
||||
if (1) {
|
||||
aGoalCompleted(Goal_indexes[5], 1);
|
||||
@@ -1495,8 +1489,6 @@ int16_t TriggerScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
int16_t TriggerScript_0001::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
switch (event) {
|
||||
case EVT_COLLIDE: {
|
||||
tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
|
||||
|
||||
// Script 017: Waypoint 1
|
||||
if (1) {
|
||||
aSetWaypoint(1);
|
||||
@@ -1540,8 +1532,6 @@ int16_t TriggerScript_0002::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
int16_t TriggerScript_0003::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
switch (event) {
|
||||
case EVT_COLLIDE: {
|
||||
tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
|
||||
|
||||
// Script 019: Waypoint 4
|
||||
if (1) {
|
||||
aSetWaypoint(4);
|
||||
@@ -1558,8 +1548,6 @@ int16_t TriggerScript_0003::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
int16_t TriggerScript_0004::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
switch (event) {
|
||||
case EVT_COLLIDE: {
|
||||
tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
|
||||
|
||||
// Script 020: Waypoint 5
|
||||
if (1) {
|
||||
aSetWaypoint(5);
|
||||
@@ -1576,8 +1564,6 @@ int16_t TriggerScript_0004::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
int16_t TriggerScript_0006::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
switch (event) {
|
||||
case EVT_COLLIDE: {
|
||||
tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
|
||||
|
||||
// Script 021: Waypoint 6 Left
|
||||
if (1) {
|
||||
aSetWaypoint(6);
|
||||
@@ -1594,8 +1580,6 @@ int16_t TriggerScript_0006::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
int16_t TriggerScript_0005::CallEvent(int event, tOSIRISEventInfo *data) {
|
||||
switch (event) {
|
||||
case EVT_COLLIDE: {
|
||||
tOSIRISEVTCOLLIDE *event_data = &data->evt_collide;
|
||||
|
||||
// Script 022: Waypoint 6 Right
|
||||
if (1) {
|
||||
aSetWaypoint(6);
|
||||
|
||||
Reference in New Issue
Block a user