Skip to content

Commit

Permalink
More clanging
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbentley committed Apr 16, 2024
1 parent e9435ea commit 61be131
Show file tree
Hide file tree
Showing 70 changed files with 227 additions and 209 deletions.
22 changes: 11 additions & 11 deletions Descent3/AImain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1978,8 +1978,8 @@ bool goal_do_avoid_walls(object *obj, vector *mdir) {
}
}

// mprintf((0, "Dist %f %f (%d, %d)\n", dist, scale, facelist[i].room_index,
//facelist[i].face_index));
// mprintf((0, "Dist %f %f (%d, %d)\n", dist, scale,
//facelist[i].room_index, facelist[i].face_index));

if (dist < closest_dist) {
closest_dist = dist;
Expand Down Expand Up @@ -2999,8 +2999,8 @@ bool AINotify(object *obj, ubyte notify_type, void *info) {
{
if (!(Game_mode & GM_MULTI)) {
for (i = 0; i < AI_NumRendered; i++) {
// mprintf((0, "I know that I could dodge, if I was aware, says robot %d.\n",
//AI_RenderedList[i]));
// mprintf((0, "I know that I could dodge, if I was aware, says robot
//%d.\n", AI_RenderedList[i]));

if (!BOA_IsVisible(Objects[AI_RenderedList[i]].roomnum, other_obj->roomnum))
continue;
Expand Down Expand Up @@ -3037,7 +3037,7 @@ bool AINotify(object *obj, ubyte notify_type, void *info) {
} else {
for (i = 0; i <= Highest_object_index; i++) {
// mprintf((0, "I know that I could dodge, if I was aware, says robot %d.\n",
//AI_RenderedList[i]));
// AI_RenderedList[i]));
if (Objects[i].control_type != CT_AI || Objects[i].type == OBJ_NONE)
continue;

Expand All @@ -3058,7 +3058,7 @@ bool AINotify(object *obj, ubyte notify_type, void *info) {

if (to_weapon * fov_vec >= Objects[i].ai_info->fov) {
// mprintf((0, "I am fired upon says robot %d\n",
//AI_RenderedList[i]));
// AI_RenderedList[i]));
if (ai_info->notify_flags & (0x00000001 << notify_type)) {
ai_info->memory[0].num_enemy_shots_dodged++;
GoalAddGoal(&Objects[i], AIG_DODGE_OBJ, (void *)&obj->handle, ACTIVATION_BLEND_LEVEL, 1.0f,
Expand Down Expand Up @@ -4976,11 +4976,11 @@ void ai_move(object *obj) {

int g_status = cur_goal->status_reg;

// if((ai_info->ai_type == AIT_MELEE1) && (ai_info->status_reg &
//AISR_MELEE))
// if((ai_info->ai_type == AIT_MELEE1) && (ai_info->status_reg
//& AISR_MELEE))
// {
// AIMoveTowardsPosition(obj, &ai_info->last_see_target_pos,
//ai_info->attack_vel_percent);
// AIMoveTowardsPosition(obj,
//&ai_info->last_see_target_pos, ai_info->attack_vel_percent);
// }
// else

Expand Down Expand Up @@ -5299,7 +5299,7 @@ void ai_fire(object *obj) {
pm->poly_wb[i].gp_index[aiming_gp_index]);

// mprintf((0, "Weapon %f, %f, %f and normal %f, %f, %f\n", XYZ(&gun_point),
//XYZ(&gun_normal)));
// XYZ(&gun_normal)));

target_dir[WB_MOVE_STILL] = ai_info->last_see_target_pos - gun_point[WB_MOVE_STILL];
target_dir[WB_MOVE_RIGHT] = ai_info->last_see_target_pos - gun_point[WB_MOVE_RIGHT];
Expand Down
7 changes: 4 additions & 3 deletions Descent3/BOA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,8 @@ void compute_terrain_region_info() {
// if(region != 0)
// {
// BOA_connect[0][BOA_num_connect[region]].roomnum =
//Rooms[i].portals[j].croom; BOA_connect[0][BOA_num_connect[region]].portal = Rooms[i].portals[j].cportal;
// Rooms[i].portals[j].croom; BOA_connect[0][BOA_num_connect[region]].portal =
// Rooms[i].portals[j].cportal;
// }

if (!(Rooms[Rooms[i].portals[j].croom].flags & RF_EXTERNAL)) {
Expand Down Expand Up @@ -2766,10 +2767,10 @@ void ComputeAABB(bool f_full) {

int diff[3];
// mprintf((0, "Split plane results r %d s %d n %d\n", i, j,
//rp->num_bbf[j]));
// rp->num_bbf[j]));
for (sp = 0; sp < 3; sp++) {
// mprintf((0, "%d %d %d\n", num_faces[sp][0],
//num_faces[sp][1], num_faces[sp][2]));
// num_faces[sp][1], num_faces[sp][2]));

if (abs(num_faces[sp][0] - num_faces[sp][1]) > abs(num_faces[sp][1] - num_faces[sp][2]))
diff[sp] = abs(num_faces[sp][0] - num_faces[sp][1]);
Expand Down
4 changes: 2 additions & 2 deletions Descent3/Controls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,8 @@ void DoKeyboardMovement(game_controls *controls) {
// check keyboard controls first.

// do thrust and orientation controls. since packet contains time since last call, frametime is taken into
//account. note that the ctDigital packets are for those rare cases where a key is down, but there is no key down time
// registered as of yet, which happens on some systems.
// account. note that the ctDigital packets are for those rare cases where a key is down, but there is no key down
// time registered as of yet, which happens on some systems.
dx = (key_x1.value - key_x0.value);
dy = (key_y1.value - key_y0.value);
dz = (key_z1.value - key_z0.value);
Expand Down
4 changes: 2 additions & 2 deletions Descent3/Mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1682,15 +1682,15 @@ bool InitMissionScript() {
//@@ fp = cfopen(DEFAULT_SCROBJ_NAME, "rb");
//@@ if (!fp) {
//@@ DoMessageBox("Error", "Unable to find mission script.", MSGBOX_OK, UICOL_WINDOW_TITLE,
//UICOL_TEXT_NORMAL);
// UICOL_TEXT_NORMAL);
//@@ mprintf((0, "Unable to open default script. Loading null script...\n"));
//@@ return false;
//@@ }
//@@ else {
//@@ Current_mission.d3xmod = D3XLoadProgram(fp);
//@@ if (!Current_mission.d3xmod) {
//@@ DoMessageBox("Error", "Unable to find mission script.", MSGBOX_OK, UICOL_WINDOW_TITLE,
//UICOL_TEXT_NORMAL);
// UICOL_TEXT_NORMAL);
//@@ mprintf((0, "Unable to open default script. Loading null script...\n"));
//@@ return false;
//@@ }
Expand Down
8 changes: 4 additions & 4 deletions Descent3/NewPyroGauges.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void NewPyroShieldGauge(tGauge *gauge, tGaugePos *pos) {
//@@ parentvp->set_text_color(GR_RGB(255,128,128));
//@@ parentvp->set_text_spacing(0);
//@@ rend_SetCharacterParameters (parentvp->get_text_color(), parentvp->get_text_color(),
//parentvp->get_text_color(), parentvp->get_text_color());
// parentvp->get_text_color(), parentvp->get_text_color());
//@@ sprintf(str, "%d", (int)Players[Player_num].shields);
//@@ x = cx - (parentvp->get_text_line_width(str)/2);
//@@ y = cy - (parentvp->get_current_font_height()/2);
Expand Down Expand Up @@ -227,7 +227,7 @@ void NewPyroEnergyDigitalGauge(tGauge *gauge, tGaugePos *pos) {
//@@ parentvp->set_text_color(GR_RGB(192,192,128));
//@@ parentvp->set_text_spacing(0);
//@@ rend_SetCharacterParameters (parentvp->get_text_color(), parentvp->get_text_color(),
//parentvp->get_text_color(), parentvp->get_text_color());
// parentvp->get_text_color(), parentvp->get_text_color());
//@@ sprintf(str, "%d", (int)Players[Player_num].energy);
//@@ x = cx - (parentvp->get_text_line_width(str)/2);
//@@ y = cy - (parentvp->get_current_font_height()/2);
Expand Down Expand Up @@ -309,7 +309,7 @@ void NewPyroPrimaryWeaponGauge(tGauge *gauge, tGaugePos *pos) {
//@@ parentvp->set_text_color(GR_RGB(0,192,0));
//@@ parentvp->set_text_spacing(0);
//@@ rend_SetCharacterParameters (parentvp->get_text_color(), parentvp->get_text_color(),
//parentvp->get_text_color(), parentvp->get_text_color());
// parentvp->get_text_color(), parentvp->get_text_color());
//@@ sprintf(str, "%s", Weapons[Players[Player_num].primary_weapon].name);
//@@ x = cx - (parentvp->get_text_line_width(str)/3);
//@@ y = cy - (parentvp->get_current_font_height()/3);
Expand Down Expand Up @@ -388,7 +388,7 @@ void NewPyroSecondaryWeaponGauge(tGauge *gauge, tGaugePos *pos) {
//@@ parentvp->set_text_color(GR_RGB(0,192,0));
//@@ parentvp->set_text_spacing(0);
//@@ rend_SetCharacterParameters (parentvp->get_text_color(), parentvp->get_text_color(),
//parentvp->get_text_color(), parentvp->get_text_color());
// parentvp->get_text_color(), parentvp->get_text_color());
//@@ sprintf(str, "%s", Weapons[Players[Player_num].secondary_weapon].name);
//@@ x = cx - (parentvp->get_text_line_width(str)/1.5f);
//@@ y = cy - (parentvp->get_current_font_height()/3);
Expand Down
14 changes: 9 additions & 5 deletions Descent3/OsirisLoadandBind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ void Osiris_DisableCreateEvents(void) { Osiris_create_events_disabled = true; }
// Purpose:
// Enables any events involved when an object is created. This is to be used for
// Loading games/viewing demos, as so not to re-initialize good data. (call when done with
//Osiris_DisableCreateEvents())
// Osiris_DisableCreateEvents())
void Osiris_EnableCreateEvents(void) { Osiris_create_events_disabled = false; }

// Osiris_IsEventEnabled
Expand Down Expand Up @@ -3380,8 +3380,10 @@ void Osiris_OMMS_Detach(OMMSHANDLE handle);
// Only has affect if you are attached to the memory. Memory will _ONLY_ be deleted when the
// following conditions are meant for the shared memory block:
// 1) The reference count for the global memory is at 0 (OMMS_Attach() adds to reference count, OMMS_Detach()
//subtracts). 2) OMMS_Free() has been called for the block of global memory. The conditions can happen in any order, but
//as soon as both are satisfied, the memory becomes deleted and any pointer returned by OMMS_Attach() becomes invalid.
// subtracts). 2) OMMS_Free() has been called for the block of global memory. The conditions can happen in any order,
// but
// as soon as both are satisfied, the memory becomes deleted and any pointer returned by OMMS_Attach() becomes
// invalid.
//
// handle : the value returned by OMMS_Malloc()
void Osiris_OMMS_Free(OMMSHANDLE handle);
Expand Down Expand Up @@ -3817,8 +3819,10 @@ void Osiris_OMMS_Detach(OMMSHANDLE handle) {
// Only has affect if you are attached to the memory. Memory will _ONLY_ be deleted when the
// following conditions are meant for the shared memory block:
// 1) The reference count for the global memory is at 0 (OMMS_Attach() adds to reference count, OMMS_Detach()
//subtracts). 2) OMMS_Free() has been called for the block of global memory. The conditions can happen in any order, but
//as soon as both are satisfied, the memory becomes deleted and any pointer returned by OMMS_Attach() becomes invalid.
// subtracts). 2) OMMS_Free() has been called for the block of global memory. The conditions can happen in any order,
// but
// as soon as both are satisfied, the memory becomes deleted and any pointer returned by OMMS_Attach() becomes
// invalid.
//
// handle : the value returned by OMMS_Malloc()
void Osiris_OMMS_Free(OMMSHANDLE handle) {
Expand Down
2 changes: 1 addition & 1 deletion Descent3/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3225,7 +3225,7 @@ void PlayerShipSpewPartSub(object *obj, bsp_info *submodel, float magnitude) {
rand_vec = (-rand_vec) * (magnitude * 25.0f);
phys_apply_force(obj, &rand_vec);
// mprintf((0, "Breakoff fireball size: %f, lifeleft: %f\n", Objects[objnum].size,
//Objects[objnum].lifeleft));
// Objects[objnum].lifeleft));
}
}

Expand Down
2 changes: 1 addition & 1 deletion Descent3/WeaponFire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ int CreateAndFireWeapon(vector *pos, vector *dir, object *parent, int weapon_num

obj->ctype.laser_info.hit_status = WPC_HIT_WALL;
// mprintf((0, "WPC: Hit r%d rw%d w%d (%f,%f,%f)\n", hit_info.hit_room,
//hit_info.hit_face_room[0], hit_info.hit_face[0], XYZ(&hit_info.hit_wallnorm[0])));
// hit_info.hit_face_room[0], hit_info.hit_face[0], XYZ(&hit_info.hit_wallnorm[0])));
} else {
obj->ctype.laser_info.hit_status = WPC_NO_COLLISIONS;
// mprintf((0, "WPC: No collisions\n"));
Expand Down
4 changes: 2 additions & 2 deletions Descent3/aipath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ void AIGenerateAltBOAPath(vector *start_pos, vector *end_pos, ai_path_info *aip,
}

// if(ROOMNUM_OUTSIDE(next_room) && ROOMNUM_OUTSIDE(*end_room) && (TERRAIN_REGION(next_room) ==
//TERRAIN_REGION(*end_room) || TERRAIN_REGION(*end_room) == 0 || TERRAIN_REGION(next_room) == 0))
// TERRAIN_REGION(*end_room) || TERRAIN_REGION(*end_room) == 0 || TERRAIN_REGION(next_room) == 0))
// {
// next_room = *end_room;
// }
Expand Down Expand Up @@ -1006,7 +1006,7 @@ bool AIPathAllocPath(object *obj, ai_frame *ai_info, void *goal_ptr, int *start_
AIPathFreePath(aip);

// if(ai_info->awareness <= AWARE_NONE && !(ai_info->flags & AIF_PERSISTANT)) // chrishack -- scalar max_nodes in
//path by awareness return false;
// path by awareness return false;

aip->goal_index = (goal *)goal_ptr - ai_info->goals;
aip->goal_uid = ((goal *)goal_ptr)->goal_uid;
Expand Down
2 changes: 1 addition & 1 deletion Descent3/cockpit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ float KeyframeAnimateCockpit() {
newkeyframe = Cockpit_info.this_keyframe + (Cockpit_info.next_keyframe - Cockpit_info.this_keyframe) *
(Cockpit_info.frame_time / COCKPIT_ANIM_TIME);
// mprintf((0, "this=%.1f next=%.1f ft=%.1f\n", Cockpit_info.this_keyframe, Cockpit_info.next_keyframe,
//Cockpit_info.frame_time)); going up in keyframes
// Cockpit_info.frame_time)); going up in keyframes
if (Cockpit_info.this_keyframe < Cockpit_info.next_keyframe) {
if (newkeyframe >= Cockpit_info.next_keyframe) {
Cockpit_info.frame_time = 0.0f;
Expand Down
8 changes: 4 additions & 4 deletions Descent3/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,8 @@ struct toggles_menu {
sheet->AddRadioButton(TXT_LEFT);
//@@ sheet->AddRadioButton(TXT_CENTER);
sheet->AddRadioButton(TXT_RIGHT);
//@@ *missile_view = (Missile_camera_window==SVW_LEFT) ? 1 : (Missile_camera_window==SVW_CENTER) ? 2 :
//(Missile_camera_window==SVW_RIGHT) ? 3 : 0;
//@@ *missile_view = (Missile_camera_window==SVW_LEFT) ? 1 : (Missile_camera_window==SVW_CENTER) ? 2
//: (Missile_camera_window==SVW_RIGHT) ? 3 : 0;
*missile_view = (Missile_camera_window == SVW_LEFT) ? 1 : (Missile_camera_window == SVW_RIGHT) ? 2 : 0;

#ifndef MACINTOSH
Expand Down Expand Up @@ -1124,8 +1124,8 @@ struct toggles_menu {
Default_player_room_leveling = *mine_autolevel;

iTemp = (*missile_view);
//@@ Missile_camera_window = (iTemp==1) ? SVW_LEFT : (iTemp==2) ? SVW_CENTER : (iTemp==3) ? SVW_RIGHT :
//-1;
//@@ Missile_camera_window = (iTemp==1) ? SVW_LEFT : (iTemp==2) ? SVW_CENTER : (iTemp==3) ? SVW_RIGHT
//: -1;
Missile_camera_window = (iTemp == 1) ? SVW_LEFT : (iTemp == 2) ? SVW_RIGHT : -1;
#ifndef MACINTOSH
Current_pilot.read_controller = (*joy_enabled) ? READF_JOY : 0;
Expand Down
4 changes: 2 additions & 2 deletions Descent3/credits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ void Credits_Display(void) {
// end the music.
D3MusicStop();
ddio_KeyFlush();
// ddio_MouseReset(); // -mouse shouldn't be reset. ui system gets hosed unfortunately
//under NT.
// ddio_MouseReset(); // -mouse shouldn't be reset. ui system gets hosed
//unfortunately under NT.
#endif
}

Expand Down
7 changes: 4 additions & 3 deletions Descent3/damage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1455,9 +1455,10 @@ void FindHitpointUV(float *u, float *v, vector *point, room *rp, int facenum);

// Break the specified (glass) face into shards
// Parameters: rp, facenum - the face to break. The face must be a portal face.
// hitpnt - the point on the face where the face shatters. If NULL, uses center point of
//face hitvec - the direction in which the thing that's breaking the glass is moving. If NULL, uses the negative of the
//surface normal
// hitpnt - the point on the face where the face shatters. If NULL, uses center point
//of
// face hitvec - the direction in which the thing that's breaking the glass is moving. If
// NULL, uses the negative of the surface normal
void BreakGlassFace(room *rp, int facenum, vector *hitpnt, vector *hitvec) {
int roomnum;
vector t_hitpnt, t_hitvec;
Expand Down
7 changes: 4 additions & 3 deletions Descent3/damage.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ void UnshakePlayer();

// Break the specified (glass) face into shards
// Parameters: rp, facenum - the face to break
// hitpnt - the point on the face where the face shatters. If NULL, uses center point of
//face hitvec - the direction in which the thing that's breaking the glass is moving. If NULL, uses the negative of the
//surface normal
// hitpnt - the point on the face where the face shatters. If NULL, uses center point
//of
// face hitvec - the direction in which the thing that's breaking the glass is moving. If
// NULL, uses the negative of the surface normal
void BreakGlassFace(room *rp, int facenum, vector *hitpnt = NULL, vector *hitvec = NULL);

#endif
4 changes: 2 additions & 2 deletions Descent3/fireball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1805,9 +1805,9 @@ void DoConcussiveForce(object *explode_obj_ptr, int parent_handle, float player_
// blow up, blowing up all the children. So I remove it. MK, 09/11/94
// if ( (hit_obj_ptr!=explode_obj_ptr) && !(hit_obj_ptr->flags&OF_DEAD) &&
//((hit_obj_ptr->type==OBJ_WEAPON /*&& (hit_obj_ptr->id==PROXIMITY_ID || hit_obj_ptr->id==SUPERPROX_ID ||
//hit_obj_ptr->id==PMINE_ID)*/) || (hit_obj_ptr->type == OBJ_CNTRLCEN) || (hit_obj_ptr->type==OBJ_PLAYER) ||
// hit_obj_ptr->id==PMINE_ID)*/) || (hit_obj_ptr->type == OBJ_CNTRLCEN) || (hit_obj_ptr->type==OBJ_PLAYER) ||
//((hit_obj_ptr->type==OBJ_ROBOT) && ((Objects[parent].type != OBJ_ROBOT) || (Objects[parent].id !=
//hit_obj_ptr->id))))) {
// hit_obj_ptr->id))))) {
hit_obj_ptr = &Objects[i];
// Check for types that get concussive force
if (!((hit_obj_ptr->type == OBJ_WEAPON) || (hit_obj_ptr->type == OBJ_ROBOT) ||
Expand Down
4 changes: 2 additions & 2 deletions Descent3/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ extern renderer_preferred_state Render_preferred_state;
extern int Render_preferred_bitdepth;

#define GM_SINGLE 1 // Single player game.
//#define GM_SERIAL 2 // You are in serial mode (Jason doesn't like
//this.)
//#define GM_SERIAL 2 // You are in serial mode (Jason doesn't
//like this.)
#define GM_NETWORK 4 // You are in network mode
#define GM_MODEM 32 // You are in a modem (serial) game

Expand Down
4 changes: 2 additions & 2 deletions Descent3/gamesequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1920,8 +1920,8 @@ void EndLevel(int state) {

// report the information to the pilot's mission data
CurrentPilotUpdateMissionStatus();
// Sound_system.StopAllSounds(); -- moved to below because bug was reported that sounds were playing in
//performance screen
// Sound_system.StopAllSounds(); -- moved to below because bug was reported that sounds were playing
//in performance screen

// save our shields (in case this call is due to starting a new level
// in InitPlayerNewLevel, we'll determine if we should restore them
Expand Down
2 changes: 1 addition & 1 deletion Descent3/help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void HelpDisplay(void) {
// quit_hot.Create(&help_wnd, UID_CANCEL, 0, &UITextItem(TXT_PRESSESCRET, UICOL_HOTSPOT_LO,UIALPHA_HOTSPOT_LO),
// &UITextItem(TXT_PRESSESCRET,UICOL_HOTSPOT_HI,UIALPHA_HOTSPOT_HI),
// HELP_X_KEY_POS, WND_HELP_H - OKCANCEL_YOFFSET,
//0,0,UIF_FIT|UIF_CENTER);
// 0,0,UIF_FIT|UIF_CENTER);
help_wnd.Open();

while (!exit_menu) {
Expand Down
12 changes: 6 additions & 6 deletions Descent3/hotspotmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ void DisplayHotSpots(hotspotmap_t *hsmap, windowmap_t *wndmap) {
//@@ {
//@@ Game_viewport->hline(GR_RGB(0,0,255),curr_hotspot->x[scanline_count].start,
//@@
//curr_hotspot->x[scanline_count].end,curr_y+scanline_count);
// curr_hotspot->x[scanline_count].end,curr_y+scanline_count);
//@@ }
//@@ }
//@@
Expand All @@ -919,24 +919,24 @@ void DisplayHotSpots(hotspotmap_t *hsmap, windowmap_t *wndmap) {
//@@ {
//@@ Game_viewport->fillrect(GR_RGB(255,0,0), wndmap->wm[count].x,wndmap->wm[count].y,
//@@
//wndmap->wm[count].x+wndmap->wm[count].width-1,wndmap->wm[count].y+wndmap->wm[count].height-1);
// wndmap->wm[count].x+wndmap->wm[count].width-1,wndmap->wm[count].y+wndmap->wm[count].height-1);
//@@ //if there is a writeable area, display it
//@@ if(wndmap->wm[count].t_top_y!=-1)
//@@ {
//@@ Game_viewport->fillrect(GR_RGB(128,128,128),
//wndmap->wm[count].l_start_x,wndmap->wm[count].t_top_y,
// wndmap->wm[count].l_start_x,wndmap->wm[count].t_top_y,
//@@ wndmap->wm[count].l_end_x,wndmap->wm[count].t_bottom_y);
//@@ Game_viewport->fillrect(GR_RGB(128,128,128),
//wndmap->wm[count].r_start_x,wndmap->wm[count].t_top_y,
// wndmap->wm[count].r_start_x,wndmap->wm[count].t_top_y,
//@@ wndmap->wm[count].r_end_x,wndmap->wm[count].t_bottom_y);
//@@ }
//@@ if(wndmap->wm[count].b_top_y!=-1)
//@@ {
//@@ Game_viewport->fillrect(GR_RGB(128,128,128),
//wndmap->wm[count].l_start_x,wndmap->wm[count].b_top_y,
// wndmap->wm[count].l_start_x,wndmap->wm[count].b_top_y,
//@@ wndmap->wm[count].l_end_x,wndmap->wm[count].b_bottom_y);
//@@ Game_viewport->fillrect(GR_RGB(128,128,128),
//wndmap->wm[count].r_start_x,wndmap->wm[count].b_top_y,
// wndmap->wm[count].r_start_x,wndmap->wm[count].b_top_y,
//@@ wndmap->wm[count].r_end_x,wndmap->wm[count].b_bottom_y);
//@@ }
//@@
Expand Down
Loading

0 comments on commit 61be131

Please sign in to comment.