diff --git a/LICENSES b/LICENSES index 244ff414ccb..0a07c907c89 100644 --- a/LICENSES +++ b/LICENSES @@ -6874,7 +6874,7 @@ radiant/bitmaps/grid_window.png | GNU General Public License 2.0 or later | Nate radiant/bitmaps/particle_map.png | GNU General Public License 2.0 or later | Nate Wright radiant/bitmaps/particle_weapon.png | GNU General Public License 2.0 or later | Nate Wright radiant/bitmaps/texwindow_uniformsize.png | | orbweaver (commiter in darkradiant repository) | http://darkradiant.svn.sourceforge.net/viewvc/darkradiant/trunk/darkradiant/install/bitmaps/texwindow_uniformsize.png?view=markup&pathrev=309 -src/common/pqueue.c | Public Domain +src/common/pqueue.cpp | Public Domain src/common/pqueue.h | Public Domain src/docs/pathfinding.odg | GNU Free Documentation License | Werner "hoehrer" Höhrer src/docs/tex/chapters/geoscape.tex | GNU General Public License 2.0 | Eric Goller diff --git a/build/modules/cgame-campaign.mk b/build/modules/cgame-campaign.mk index 0ec08db33d3..e762c11f5d7 100644 --- a/build/modules/cgame-campaign.mk +++ b/build/modules/cgame-campaign.mk @@ -12,84 +12,84 @@ $(TARGET)_LDFLAGS += $(SO_LDFLAGS) $(MXML_LIBS) -lm $(TARGET)_FILE := base/$(TARGET).$(SO_EXT) $(TARGET)_SRCS = \ - client/cgame/campaign/cl_game_campaign.c \ - client/cgame/campaign/cp_aircraft.c \ - client/cgame/campaign/cp_aircraft_callbacks.c \ - client/cgame/campaign/cp_alien_interest.c \ - client/cgame/campaign/cp_base.c \ - client/cgame/campaign/cp_base_callbacks.c \ - client/cgame/campaign/cp_basedefence_callbacks.c \ - client/cgame/campaign/cp_building.c \ - client/cgame/campaign/cp_cgame_callbacks.c \ - client/cgame/campaign/cp_capacity.c \ - client/cgame/campaign/cp_hospital.c \ - client/cgame/campaign/cp_hospital_callbacks.c \ - client/cgame/campaign/cp_messages.c \ - client/cgame/campaign/cp_missions.c \ - client/cgame/campaign/cp_mission_triggers.c \ - client/cgame/campaign/cp_parse.c \ - client/cgame/campaign/cp_rank.c \ - client/cgame/campaign/cp_team.c \ - client/cgame/campaign/cp_team_callbacks.c \ - client/cgame/campaign/cp_time.c \ - client/cgame/campaign/cp_xvi.c \ - client/cgame/campaign/cp_alienbase.c \ - client/cgame/campaign/cp_aliencont.c \ - client/cgame/campaign/cp_aliencont_callbacks.c \ - client/cgame/campaign/cp_auto_mission.c \ - client/cgame/campaign/cp_mission_callbacks.c \ - client/cgame/campaign/cp_airfight.c \ - client/cgame/campaign/cp_campaign.c \ - client/cgame/campaign/cp_event.c \ - client/cgame/campaign/cp_employee.c \ - client/cgame/campaign/cp_employee_callbacks.c \ - client/cgame/campaign/cp_installation.c \ - client/cgame/campaign/cp_installation_callbacks.c \ - client/cgame/campaign/cp_market.c \ - client/cgame/campaign/cp_market_callbacks.c \ - client/cgame/campaign/cp_map.c \ - client/cgame/campaign/cp_mapfightequip.c \ - client/cgame/campaign/cp_nation.c \ - client/cgame/campaign/cp_produce.c \ - client/cgame/campaign/cp_produce_callbacks.c \ - client/cgame/campaign/cp_radar.c \ - client/cgame/campaign/cp_research.c \ - client/cgame/campaign/cp_research_callbacks.c \ - client/cgame/campaign/cp_save.c \ - client/cgame/campaign/cp_statistics.c \ - client/cgame/campaign/cp_transfer.c \ - client/cgame/campaign/cp_transfer_callbacks.c \ - client/cgame/campaign/cp_ufo.c \ - client/cgame/campaign/cp_ufopedia.c \ - client/cgame/campaign/cp_uforecovery.c \ - client/cgame/campaign/cp_uforecovery_callbacks.c \ - client/cgame/campaign/cp_messageoptions.c \ - client/cgame/campaign/cp_messageoptions_callbacks.c \ - client/cgame/campaign/cp_overlay.c \ - client/cgame/campaign/cp_popup.c \ - client/cgame/campaign/cp_fightequip_callbacks.c \ + client/cgame/campaign/cl_game_campaign.cpp \ + client/cgame/campaign/cp_aircraft.cpp \ + client/cgame/campaign/cp_aircraft_callbacks.cpp \ + client/cgame/campaign/cp_alien_interest.cpp \ + client/cgame/campaign/cp_base.cpp \ + client/cgame/campaign/cp_base_callbacks.cpp \ + client/cgame/campaign/cp_basedefence_callbacks.cpp \ + client/cgame/campaign/cp_building.cpp \ + client/cgame/campaign/cp_cgame_callbacks.cpp \ + client/cgame/campaign/cp_capacity.cpp \ + client/cgame/campaign/cp_hospital.cpp \ + client/cgame/campaign/cp_hospital_callbacks.cpp \ + client/cgame/campaign/cp_messages.cpp \ + client/cgame/campaign/cp_missions.cpp \ + client/cgame/campaign/cp_mission_triggers.cpp \ + client/cgame/campaign/cp_parse.cpp \ + client/cgame/campaign/cp_rank.cpp \ + client/cgame/campaign/cp_team.cpp \ + client/cgame/campaign/cp_team_callbacks.cpp \ + client/cgame/campaign/cp_time.cpp \ + client/cgame/campaign/cp_xvi.cpp \ + client/cgame/campaign/cp_alienbase.cpp \ + client/cgame/campaign/cp_aliencont.cpp \ + client/cgame/campaign/cp_aliencont_callbacks.cpp \ + client/cgame/campaign/cp_auto_mission.cpp \ + client/cgame/campaign/cp_mission_callbacks.cpp \ + client/cgame/campaign/cp_airfight.cpp \ + client/cgame/campaign/cp_campaign.cpp \ + client/cgame/campaign/cp_event.cpp \ + client/cgame/campaign/cp_employee.cpp \ + client/cgame/campaign/cp_employee_callbacks.cpp \ + client/cgame/campaign/cp_installation.cpp \ + client/cgame/campaign/cp_installation_callbacks.cpp \ + client/cgame/campaign/cp_market.cpp \ + client/cgame/campaign/cp_market_callbacks.cpp \ + client/cgame/campaign/cp_map.cpp \ + client/cgame/campaign/cp_mapfightequip.cpp \ + client/cgame/campaign/cp_nation.cpp \ + client/cgame/campaign/cp_produce.cpp \ + client/cgame/campaign/cp_produce_callbacks.cpp \ + client/cgame/campaign/cp_radar.cpp \ + client/cgame/campaign/cp_research.cpp \ + client/cgame/campaign/cp_research_callbacks.cpp \ + client/cgame/campaign/cp_save.cpp \ + client/cgame/campaign/cp_statistics.cpp \ + client/cgame/campaign/cp_transfer.cpp \ + client/cgame/campaign/cp_transfer_callbacks.cpp \ + client/cgame/campaign/cp_ufo.cpp \ + client/cgame/campaign/cp_ufopedia.cpp \ + client/cgame/campaign/cp_uforecovery.cpp \ + client/cgame/campaign/cp_uforecovery_callbacks.cpp \ + client/cgame/campaign/cp_messageoptions.cpp \ + client/cgame/campaign/cp_messageoptions_callbacks.cpp \ + client/cgame/campaign/cp_overlay.cpp \ + client/cgame/campaign/cp_popup.cpp \ + client/cgame/campaign/cp_fightequip_callbacks.cpp \ \ - client/cgame/campaign/missions/cp_mission_baseattack.c \ - client/cgame/campaign/missions/cp_mission_buildbase.c \ - client/cgame/campaign/missions/cp_mission_harvest.c \ - client/cgame/campaign/missions/cp_mission_intercept.c \ - client/cgame/campaign/missions/cp_mission_recon.c \ - client/cgame/campaign/missions/cp_mission_rescue.c \ - client/cgame/campaign/missions/cp_mission_supply.c \ - client/cgame/campaign/missions/cp_mission_terror.c \ - client/cgame/campaign/missions/cp_mission_xvi.c + client/cgame/campaign/missions/cp_mission_baseattack.cpp \ + client/cgame/campaign/missions/cp_mission_buildbase.cpp \ + client/cgame/campaign/missions/cp_mission_harvest.cpp \ + client/cgame/campaign/missions/cp_mission_intercept.cpp \ + client/cgame/campaign/missions/cp_mission_recon.cpp \ + client/cgame/campaign/missions/cp_mission_rescue.cpp \ + client/cgame/campaign/missions/cp_mission_supply.cpp \ + client/cgame/campaign/missions/cp_mission_terror.cpp \ + client/cgame/campaign/missions/cp_mission_xvi.cpp ifneq ($(HARD_LINKED_CGAME),1) - $(TARGET)_SRCS += shared/mathlib.c \ - shared/shared.c \ - shared/utf8.c \ - shared/parse.c \ - shared/infostring.c \ + $(TARGET)_SRCS += shared/mathlib.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ + shared/parse.cpp \ + shared/infostring.cpp \ \ - game/q_shared.c \ - game/chr_shared.c \ - game/inv_shared.c \ - game/inventory.c + game/q_shared.cpp \ + game/chr_shared.cpp \ + game/inv_shared.cpp \ + game/inventory.cpp else $(TARGET)_IGNORE := yes endif diff --git a/build/modules/cgame-multiplayer.mk b/build/modules/cgame-multiplayer.mk index 5d442fc39ce..38e25041cc2 100644 --- a/build/modules/cgame-multiplayer.mk +++ b/build/modules/cgame-multiplayer.mk @@ -12,21 +12,21 @@ $(TARGET)_LDFLAGS += $(SO_LDFLAGS) $(MXML_LIBS) -lm $(TARGET)_FILE := base/$(TARGET).$(SO_EXT) $(TARGET)_SRCS = \ - client/cgame/multiplayer/cl_game_multiplayer.c \ - client/cgame/multiplayer/mp_callbacks.c \ - client/cgame/multiplayer/mp_serverlist.c + client/cgame/multiplayer/cl_game_multiplayer.cpp \ + client/cgame/multiplayer/mp_callbacks.cpp \ + client/cgame/multiplayer/mp_serverlist.cpp ifneq ($(HARD_LINKED_CGAME),1) - $(TARGET)_SRCS += shared/mathlib.c \ - shared/shared.c \ - shared/utf8.c \ - shared/parse.c \ - shared/infostring.c \ + $(TARGET)_SRCS += shared/mathlib.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ + shared/parse.cpp \ + shared/infostring.cpp \ \ - game/q_shared.c \ - game/chr_shared.c \ - game/inv_shared.c \ - game/inventory.c + game/q_shared.cpp \ + game/chr_shared.cpp \ + game/inv_shared.cpp \ + game/inventory.cpp else $(TARGET)_IGNORE := yes endif diff --git a/build/modules/cgame-skirmish.mk b/build/modules/cgame-skirmish.mk index 3a80197a536..7b2194848f8 100644 --- a/build/modules/cgame-skirmish.mk +++ b/build/modules/cgame-skirmish.mk @@ -12,19 +12,19 @@ $(TARGET)_LDFLAGS += $(SO_LDFLAGS) $(MXML_LIBS) -lm $(TARGET)_FILE := base/$(TARGET).$(SO_EXT) $(TARGET)_SRCS = \ - client/cgame/skirmish/cl_game_skirmish.c + client/cgame/skirmish/cl_game_skirmish.cpp ifneq ($(HARD_LINKED_CGAME),1) - $(TARGET)_SRCS += shared/mathlib.c \ - shared/shared.c \ - shared/utf8.c \ - shared/parse.c \ - shared/infostring.c \ + $(TARGET)_SRCS += shared/mathlib.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ + shared/parse.cpp \ + shared/infostring.cpp \ \ - game/q_shared.c \ - game/chr_shared.c \ - game/inv_shared.c \ - game/inventory.c + game/q_shared.cpp \ + game/chr_shared.cpp \ + game/inv_shared.cpp \ + game/inventory.cpp else $(TARGET)_IGNORE := yes endif diff --git a/build/modules/cgame-staticcampaign.mk b/build/modules/cgame-staticcampaign.mk index 052ed0e373e..940ff2c9987 100644 --- a/build/modules/cgame-staticcampaign.mk +++ b/build/modules/cgame-staticcampaign.mk @@ -12,23 +12,23 @@ $(TARGET)_LDFLAGS += $(SO_LDFLAGS) $(MXML_LIBS) -lm $(TARGET)_FILE := base/$(TARGET).$(SO_EXT) $(TARGET)_SRCS = \ - client/cgame/staticcampaign/cl_game_staticcampaign.c \ - client/cgame/staticcampaign/scp_missions.c \ - client/cgame/staticcampaign/scp_parse.c + client/cgame/staticcampaign/cl_game_staticcampaign.cpp \ + client/cgame/staticcampaign/scp_missions.cpp \ + client/cgame/staticcampaign/scp_parse.cpp ifneq ($(HARD_LINKED_CGAME),1) - $(TARGET)_SRCS += shared/mathlib.c \ - shared/shared.c \ - shared/utf8.c \ - shared/parse.c \ - shared/infostring.c \ + $(TARGET)_SRCS += shared/mathlib.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ + shared/parse.cpp \ + shared/infostring.cpp \ \ - common/binaryexpressionparser.c \ + common/binaryexpressionparser.cpp \ \ - game/q_shared.c \ - game/chr_shared.c \ - game/inv_shared.c \ - game/inventory.c \ + game/q_shared.cpp \ + game/chr_shared.cpp \ + game/inv_shared.cpp \ + game/inventory.cpp \ \ $(cgame-campaign_SRCS) else diff --git a/build/modules/game.mk b/build/modules/game.mk index fd2d275bac8..91d7bc24a4d 100644 --- a/build/modules/game.mk +++ b/build/modules/game.mk @@ -17,73 +17,73 @@ ifeq ($(DEBUG),1) endif $(TARGET)_SRCS = \ - game/g_actor.c \ - game/g_ai.c \ - game/g_ai_lua.c \ - game/g_client.c \ - game/g_combat.c \ - game/g_cmds.c \ - game/g_edicts.c \ - game/g_events.c \ - game/g_func.c \ - game/g_inventory.c \ - game/g_main.c \ - game/g_match.c \ - game/g_mission.c \ - game/g_morale.c \ - game/g_move.c \ - game/g_phys.c \ - game/g_reaction.c \ - game/g_round.c \ - game/g_stats.c \ - game/g_spawn.c \ - game/g_svcmds.c \ - game/g_trigger.c \ - game/g_utils.c \ - game/g_vis.c \ + game/g_actor.cpp \ + game/g_ai.cpp \ + game/g_ai_lua.cpp \ + game/g_client.cpp \ + game/g_combat.cpp \ + game/g_cmds.cpp \ + game/g_edicts.cpp \ + game/g_events.cpp \ + game/g_func.cpp \ + game/g_inventory.cpp \ + game/g_main.cpp \ + game/g_match.cpp \ + game/g_mission.cpp \ + game/g_morale.cpp \ + game/g_move.cpp \ + game/g_phys.cpp \ + game/g_reaction.cpp \ + game/g_round.cpp \ + game/g_stats.cpp \ + game/g_spawn.cpp \ + game/g_svcmds.cpp \ + game/g_trigger.cpp \ + game/g_utils.cpp \ + game/g_vis.cpp \ \ - game/lua/lapi.c \ - game/lua/lauxlib.c \ - game/lua/lbaselib.c \ - game/lua/lcode.c \ - game/lua/ldblib.c \ - game/lua/ldebug.c \ - game/lua/ldo.c \ - game/lua/ldump.c \ - game/lua/lfunc.c \ - game/lua/lgc.c \ - game/lua/linit.c \ - game/lua/liolib.c \ - game/lua/llex.c \ - game/lua/lmathlib.c \ - game/lua/lmem.c \ - game/lua/loadlib.c \ - game/lua/lobject.c \ - game/lua/lopcodes.c \ - game/lua/loslib.c \ - game/lua/lparser.c \ - game/lua/lstate.c \ - game/lua/lstring.c \ - game/lua/lstrlib.c \ - game/lua/ltable.c \ - game/lua/ltablib.c \ - game/lua/ltm.c \ - game/lua/lundump.c \ - game/lua/lvm.c \ - game/lua/lzio.c \ - game/lua/print.c + game/lua/lapi.cpp \ + game/lua/lauxlib.cpp \ + game/lua/lbaselib.cpp \ + game/lua/lcode.cpp \ + game/lua/ldblib.cpp \ + game/lua/ldebug.cpp \ + game/lua/ldo.cpp \ + game/lua/ldump.cpp \ + game/lua/lfunc.cpp \ + game/lua/lgc.cpp \ + game/lua/linit.cpp \ + game/lua/liolib.cpp \ + game/lua/llex.cpp \ + game/lua/lmathlib.cpp \ + game/lua/lmem.cpp \ + game/lua/loadlib.cpp \ + game/lua/lobject.cpp \ + game/lua/lopcodes.cpp \ + game/lua/loslib.cpp \ + game/lua/lparser.cpp \ + game/lua/lstate.cpp \ + game/lua/lstring.cpp \ + game/lua/lstrlib.cpp \ + game/lua/ltable.cpp \ + game/lua/ltablib.cpp \ + game/lua/ltm.cpp \ + game/lua/lundump.cpp \ + game/lua/lvm.cpp \ + game/lua/lzio.cpp \ + game/lua/print.cpp ifneq ($(HARD_LINKED_GAME),1) - $(TARGET)_SRCS += shared/mathlib.c \ - shared/shared.c \ - shared/utf8.c \ - shared/parse.c \ - shared/infostring.c \ + $(TARGET)_SRCS += shared/mathlib.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ + shared/parse.cpp \ + shared/infostring.cpp \ \ - game/q_shared.c \ - game/chr_shared.c \ - game/inv_shared.c \ - game/inventory.c + game/q_shared.cpp \ + game/chr_shared.cpp \ + game/inv_shared.cpp \ + game/inventory.cpp else $(TARGET)_IGNORE := yes endif diff --git a/build/modules/memory.mk b/build/modules/memory.mk index 1fb641c4ae0..9b6315feff8 100644 --- a/build/modules/memory.mk +++ b/build/modules/memory.mk @@ -12,7 +12,7 @@ $(TARGET)_LDFLAGS += -lm $(TARGET)_CFLAGS += -DCOMPILE_UFO $(SDL_CFLAGS) $(SDL_IMAGE_CFLAGS) $(MXML_CFLAGS) $(TARGET)_SRCS = \ - tools/memory.c + tools/memory.cpp $(TARGET)_OBJS := $(call ASSEMBLE_OBJECTS,$(TARGET)) $(TARGET)_CXXFLAGS := $($(TARGET)_CFLAGS) diff --git a/build/modules/testall.mk b/build/modules/testall.mk index 08f639a4084..d91251eed74 100644 --- a/build/modules/testall.mk +++ b/build/modules/testall.mk @@ -12,256 +12,256 @@ $(TARGET)_CFLAGS += -DCOMPILE_UFO -DHARD_LINKED_GAME -DCOMPILE_UNITTESTS $(BFD $(TARGET)_LDFLAGS += -lcunit -lpng -ljpeg $(BFD_LIBS) $(INTL_LIBS) $(SDL_TTF_LIBS) $(SDL_IMAGE_LIBS) $(SDL_MIXER_LIBS) $(OPENGL_LIBS) $(SDL_LIBS) $(CURL_LIBS) $(THEORA_LIBS) $(XVID_LIBS) $(VORBIS_LIBS) $(OGG_LIBS) $(MXML_LIBS) $(SO_LIBS) -lz $(TARGET)_SRCS = \ - tests/test_all.c \ - tests/test_routing.c \ - tests/test_events.c \ - tests/test_generic.c \ - tests/test_inventory.c \ - tests/test_game.c \ - tests/test_mapdef.c \ - tests/test_mathlibextra.c \ - tests/test_rma.c \ - tests/test_renderer.c \ - tests/test_scripts.c \ - tests/test_shared.c \ - tests/test_ui.c \ - tests/test_ui_level2.c \ - tests/test_campaign.c \ - tests/test_parser.c \ - tests/test_dbuffer.c \ + tests/test_all.cpp \ + tests/test_routing.cpp \ + tests/test_events.cpp \ + tests/test_generic.cpp \ + tests/test_inventory.cpp \ + tests/test_game.cpp \ + tests/test_mapdef.cpp \ + tests/test_mathlibextra.cpp \ + tests/test_rma.cpp \ + tests/test_renderer.cpp \ + tests/test_scripts.cpp \ + tests/test_shared.cpp \ + tests/test_ui.cpp \ + tests/test_ui_level2.cpp \ + tests/test_campaign.cpp \ + tests/test_parser.cpp \ + tests/test_dbuffer.cpp \ \ - client/cl_console.c \ - client/cl_http.c \ - client/cl_inventory.c \ - client/cl_inventory_callbacks.c \ - client/cl_irc.c \ - client/cl_language.c \ - client/cl_main.c \ - client/cl_menu.c \ - client/cl_screen.c \ - client/cl_team.c \ - client/cl_tip.c \ - client/cl_tutorials.c \ - client/cl_video.c \ + client/cl_console.cpp \ + client/cl_http.cpp \ + client/cl_inventory.cpp \ + client/cl_inventory_callbacks.cpp \ + client/cl_irc.cpp \ + client/cl_language.cpp \ + client/cl_main.cpp \ + client/cl_menu.cpp \ + client/cl_screen.cpp \ + client/cl_team.cpp \ + client/cl_tip.cpp \ + client/cl_tutorials.cpp \ + client/cl_video.cpp \ \ - client/input/cl_input.c \ - client/input/cl_joystick.c \ - client/input/cl_keys.c \ + client/input/cl_input.cpp \ + client/input/cl_joystick.cpp \ + client/input/cl_keys.cpp \ \ - client/cinematic/cl_cinematic.c \ - client/cinematic/cl_cinematic_roq.c \ - client/cinematic/cl_cinematic_ogm.c \ - client/cinematic/cl_sequence.c \ + client/cinematic/cl_cinematic.cpp \ + client/cinematic/cl_cinematic_roq.cpp \ + client/cinematic/cl_cinematic_ogm.cpp \ + client/cinematic/cl_sequence.cpp \ \ - client/battlescape/cl_actor.c \ - client/battlescape/cl_battlescape.c \ - client/battlescape/cl_camera.c \ - client/battlescape/cl_hud.c \ - client/battlescape/cl_hud_callbacks.c \ - client/battlescape/cl_localentity.c \ - client/battlescape/cl_parse.c \ - client/battlescape/cl_particle.c \ - client/battlescape/cl_radar.c \ - client/battlescape/cl_ugv.c \ - client/battlescape/cl_view.c \ - client/battlescape/cl_spawn.c \ + client/battlescape/cl_actor.cpp \ + client/battlescape/cl_battlescape.cpp \ + client/battlescape/cl_camera.cpp \ + client/battlescape/cl_hud.cpp \ + client/battlescape/cl_hud_callbacks.cpp \ + client/battlescape/cl_localentity.cpp \ + client/battlescape/cl_parse.cpp \ + client/battlescape/cl_particle.cpp \ + client/battlescape/cl_radar.cpp \ + client/battlescape/cl_ugv.cpp \ + client/battlescape/cl_view.cpp \ + client/battlescape/cl_spawn.cpp \ \ - client/battlescape/events/e_main.c \ - client/battlescape/events/e_parse.c \ - client/battlescape/events/e_server.c \ - client/battlescape/events/event/actor/e_event_actoradd.c \ - client/battlescape/events/event/actor/e_event_actorappear.c \ - client/battlescape/events/event/actor/e_event_actorclientaction.c \ - client/battlescape/events/event/actor/e_event_actordie.c \ - client/battlescape/events/event/actor/e_event_actormove.c \ - client/battlescape/events/event/actor/e_event_actorresetclientaction.c \ - client/battlescape/events/event/actor/e_event_actorreservationchange.c \ - client/battlescape/events/event/actor/e_event_actorreactionfirechange.c \ - client/battlescape/events/event/actor/e_event_actorrevitalised.c \ - client/battlescape/events/event/actor/e_event_actorshoot.c \ - client/battlescape/events/event/actor/e_event_actorshoothidden.c \ - client/battlescape/events/event/actor/e_event_actorstartshoot.c \ - client/battlescape/events/event/actor/e_event_actorstatechange.c \ - client/battlescape/events/event/actor/e_event_actorstats.c \ - client/battlescape/events/event/actor/e_event_actorthrow.c \ - client/battlescape/events/event/actor/e_event_actorturn.c \ - client/battlescape/events/event/inventory/e_event_invadd.c \ - client/battlescape/events/event/inventory/e_event_invammo.c \ - client/battlescape/events/event/inventory/e_event_invdel.c \ - client/battlescape/events/event/inventory/e_event_invreload.c \ - client/battlescape/events/event/player/e_event_centerview.c \ - client/battlescape/events/event/player/e_event_doendround.c \ - client/battlescape/events/event/player/e_event_endroundannounce.c \ - client/battlescape/events/event/player/e_event_reset.c \ - client/battlescape/events/event/player/e_event_results.c \ - client/battlescape/events/event/player/e_event_startgame.c \ - client/battlescape/events/event/world/e_event_addbrushmodel.c \ - client/battlescape/events/event/world/e_event_addedict.c \ - client/battlescape/events/event/world/e_event_doorclose.c \ - client/battlescape/events/event/world/e_event_dooropen.c \ - client/battlescape/events/event/world/e_event_entappear.c \ - client/battlescape/events/event/world/e_event_entdestroy.c \ - client/battlescape/events/event/world/e_event_entperish.c \ - client/battlescape/events/event/world/e_event_explode.c \ - client/battlescape/events/event/world/e_event_particleappear.c \ - client/battlescape/events/event/world/e_event_particlespawn.c \ - client/battlescape/events/event/world/e_event_sound.c \ + client/battlescape/events/e_main.cpp \ + client/battlescape/events/e_parse.cpp \ + client/battlescape/events/e_server.cpp \ + client/battlescape/events/event/actor/e_event_actoradd.cpp \ + client/battlescape/events/event/actor/e_event_actorappear.cpp \ + client/battlescape/events/event/actor/e_event_actorclientaction.cpp \ + client/battlescape/events/event/actor/e_event_actordie.cpp \ + client/battlescape/events/event/actor/e_event_actormove.cpp \ + client/battlescape/events/event/actor/e_event_actorresetclientaction.cpp \ + client/battlescape/events/event/actor/e_event_actorreservationchange.cpp \ + client/battlescape/events/event/actor/e_event_actorreactionfirechange.cpp \ + client/battlescape/events/event/actor/e_event_actorrevitalised.cpp \ + client/battlescape/events/event/actor/e_event_actorshoot.cpp \ + client/battlescape/events/event/actor/e_event_actorshoothidden.cpp \ + client/battlescape/events/event/actor/e_event_actorstartshoot.cpp \ + client/battlescape/events/event/actor/e_event_actorstatechange.cpp \ + client/battlescape/events/event/actor/e_event_actorstats.cpp \ + client/battlescape/events/event/actor/e_event_actorthrow.cpp \ + client/battlescape/events/event/actor/e_event_actorturn.cpp \ + client/battlescape/events/event/inventory/e_event_invadd.cpp \ + client/battlescape/events/event/inventory/e_event_invammo.cpp \ + client/battlescape/events/event/inventory/e_event_invdel.cpp \ + client/battlescape/events/event/inventory/e_event_invreload.cpp \ + client/battlescape/events/event/player/e_event_centerview.cpp \ + client/battlescape/events/event/player/e_event_doendround.cpp \ + client/battlescape/events/event/player/e_event_endroundannounce.cpp \ + client/battlescape/events/event/player/e_event_reset.cpp \ + client/battlescape/events/event/player/e_event_results.cpp \ + client/battlescape/events/event/player/e_event_startgame.cpp \ + client/battlescape/events/event/world/e_event_addbrushmodel.cpp \ + client/battlescape/events/event/world/e_event_addedict.cpp \ + client/battlescape/events/event/world/e_event_doorclose.cpp \ + client/battlescape/events/event/world/e_event_dooropen.cpp \ + client/battlescape/events/event/world/e_event_entappear.cpp \ + client/battlescape/events/event/world/e_event_entdestroy.cpp \ + client/battlescape/events/event/world/e_event_entperish.cpp \ + client/battlescape/events/event/world/e_event_explode.cpp \ + client/battlescape/events/event/world/e_event_particleappear.cpp \ + client/battlescape/events/event/world/e_event_particlespawn.cpp \ + client/battlescape/events/event/world/e_event_sound.cpp \ \ - client/sound/s_music.c \ - client/sound/s_main.c \ - client/sound/s_mix.c \ - client/sound/s_sample.c \ + client/sound/s_music.cpp \ + client/sound/s_main.cpp \ + client/sound/s_mix.cpp \ + client/sound/s_sample.cpp \ \ - client/cgame/cl_game.c \ - client/cgame/cl_game_team.c \ + client/cgame/cl_game.cpp \ + client/cgame/cl_game_team.cpp \ \ - client/ui/ui_actions.c \ - client/ui/ui_behaviour.c \ - client/ui/ui_components.c \ - client/ui/ui_data.c \ - client/ui/ui_dragndrop.c \ - client/ui/ui_draw.c \ - client/ui/ui_expression.c \ - client/ui/ui_font.c \ - client/ui/ui_sprite.c \ - client/ui/ui_input.c \ - client/ui/ui_main.c \ + client/ui/ui_actions.cpp \ + client/ui/ui_behaviour.cpp \ + client/ui/ui_components.cpp \ + client/ui/ui_data.cpp \ + client/ui/ui_dragndrop.cpp \ + client/ui/ui_draw.cpp \ + client/ui/ui_expression.cpp \ + client/ui/ui_font.cpp \ + client/ui/ui_sprite.cpp \ + client/ui/ui_input.cpp \ + client/ui/ui_main.cpp \ client/ui/ui_node.cpp \ - client/ui/ui_nodes.c \ - client/ui/ui_parse.c \ - client/ui/ui_popup.c \ - client/ui/ui_render.c \ - client/ui/ui_sound.c \ - client/ui/ui_timer.c \ - client/ui/ui_tooltip.c \ - client/ui/ui_windows.c \ + client/ui/ui_nodes.cpp \ + client/ui/ui_parse.cpp \ + client/ui/ui_popup.cpp \ + client/ui/ui_render.cpp \ + client/ui/ui_sound.cpp \ + client/ui/ui_timer.cpp \ + client/ui/ui_tooltip.cpp \ + client/ui/ui_windows.cpp \ client/ui/node/ui_node_abstractnode.cpp \ - client/ui/node/ui_node_abstractvalue.c \ - client/ui/node/ui_node_abstractoption.c \ - client/ui/node/ui_node_abstractscrollbar.c \ - client/ui/node/ui_node_abstractscrollable.c \ - client/ui/node/ui_node_bar.c \ - client/ui/node/ui_node_base.c \ - client/ui/node/ui_node_baseinventory.c \ - client/ui/node/ui_node_battlescape.c \ - client/ui/node/ui_node_button.c \ - client/ui/node/ui_node_checkbox.c \ - client/ui/node/ui_node_video.c \ - client/ui/node/ui_node_container.c \ - client/ui/node/ui_node_controls.c \ - client/ui/node/ui_node_custombutton.c \ - client/ui/node/ui_node_data.c \ - client/ui/node/ui_node_editor.c \ - client/ui/node/ui_node_ekg.c \ - client/ui/node/ui_node_image.c \ - client/ui/node/ui_node_item.c \ - client/ui/node/ui_node_keybinding.c \ - client/ui/node/ui_node_linechart.c \ - client/ui/node/ui_node_map.c \ - client/ui/node/ui_node_material_editor.c \ - client/ui/node/ui_node_model.c \ - client/ui/node/ui_node_messagelist.c \ - client/ui/node/ui_node_option.c \ - client/ui/node/ui_node_optionlist.c \ - client/ui/node/ui_node_optiontree.c \ - client/ui/node/ui_node_panel.c \ - client/ui/node/ui_node_radar.c \ - client/ui/node/ui_node_radiobutton.c \ - client/ui/node/ui_node_rows.c \ - client/ui/node/ui_node_selectbox.c \ - client/ui/node/ui_node_sequence.c \ - client/ui/node/ui_node_string.c \ - client/ui/node/ui_node_special.c \ - client/ui/node/ui_node_spinner.c \ - client/ui/node/ui_node_spinner2.c \ - client/ui/node/ui_node_tab.c \ - client/ui/node/ui_node_tbar.c \ - client/ui/node/ui_node_text.c \ - client/ui/node/ui_node_text2.c \ - client/ui/node/ui_node_textlist.c \ - client/ui/node/ui_node_textentry.c \ - client/ui/node/ui_node_texture.c \ - client/ui/node/ui_node_todo.c \ - client/ui/node/ui_node_vscrollbar.c \ - client/ui/node/ui_node_window.c \ - client/ui/node/ui_node_zone.c \ + client/ui/node/ui_node_abstractvalue.cpp \ + client/ui/node/ui_node_abstractoption.cpp \ + client/ui/node/ui_node_abstractscrollbar.cpp \ + client/ui/node/ui_node_abstractscrollable.cpp \ + client/ui/node/ui_node_bar.cpp \ + client/ui/node/ui_node_base.cpp \ + client/ui/node/ui_node_baseinventory.cpp \ + client/ui/node/ui_node_battlescape.cpp \ + client/ui/node/ui_node_button.cpp \ + client/ui/node/ui_node_checkbox.cpp \ + client/ui/node/ui_node_video.cpp \ + client/ui/node/ui_node_container.cpp \ + client/ui/node/ui_node_controls.cpp \ + client/ui/node/ui_node_custombutton.cpp \ + client/ui/node/ui_node_data.cpp \ + client/ui/node/ui_node_editor.cpp \ + client/ui/node/ui_node_ekg.cpp \ + client/ui/node/ui_node_image.cpp \ + client/ui/node/ui_node_item.cpp \ + client/ui/node/ui_node_keybinding.cpp \ + client/ui/node/ui_node_linechart.cpp \ + client/ui/node/ui_node_map.cpp \ + client/ui/node/ui_node_material_editor.cpp \ + client/ui/node/ui_node_model.cpp \ + client/ui/node/ui_node_messagelist.cpp \ + client/ui/node/ui_node_option.cpp \ + client/ui/node/ui_node_optionlist.cpp \ + client/ui/node/ui_node_optiontree.cpp \ + client/ui/node/ui_node_panel.cpp \ + client/ui/node/ui_node_radar.cpp \ + client/ui/node/ui_node_radiobutton.cpp \ + client/ui/node/ui_node_rows.cpp \ + client/ui/node/ui_node_selectbox.cpp \ + client/ui/node/ui_node_sequence.cpp \ + client/ui/node/ui_node_string.cpp \ + client/ui/node/ui_node_special.cpp \ + client/ui/node/ui_node_spinner.cpp \ + client/ui/node/ui_node_spinner2.cpp \ + client/ui/node/ui_node_tab.cpp \ + client/ui/node/ui_node_tbar.cpp \ + client/ui/node/ui_node_text.cpp \ + client/ui/node/ui_node_text2.cpp \ + client/ui/node/ui_node_textlist.cpp \ + client/ui/node/ui_node_textentry.cpp \ + client/ui/node/ui_node_texture.cpp \ + client/ui/node/ui_node_todo.cpp \ + client/ui/node/ui_node_vscrollbar.cpp \ + client/ui/node/ui_node_window.cpp \ + client/ui/node/ui_node_zone.cpp \ \ - common/binaryexpressionparser.c \ - common/cmd.c \ - common/http.c \ - common/ioapi.c \ - common/unzip.c \ - common/bsp.c \ - common/grid.c \ - common/cmodel.c \ - common/common.c \ - common/cvar.c \ - common/files.c \ - common/list.c \ - common/md4.c \ - common/md5.c \ - common/mem.c \ - common/msg.c \ - common/net.c \ - common/netpack.c \ - common/dbuffer.c \ - common/pqueue.c \ - common/scripts.c \ - common/tracing.c \ - common/routing.c \ - common/xml.c \ + common/binaryexpressionparser.cpp \ + common/cmd.cpp \ + common/http.cpp \ + common/ioapi.cpp \ + common/unzip.cpp \ + common/bsp.cpp \ + common/grid.cpp \ + common/cmodel.cpp \ + common/common.cpp \ + common/cvar.cpp \ + common/files.cpp \ + common/list.cpp \ + common/md4.cpp \ + common/md5.cpp \ + common/mem.cpp \ + common/msg.cpp \ + common/net.cpp \ + common/netpack.cpp \ + common/dbuffer.cpp \ + common/pqueue.cpp \ + common/scripts.cpp \ + common/tracing.cpp \ + common/routing.cpp \ + common/xml.cpp \ \ - server/sv_ccmds.c \ - server/sv_game.c \ - server/sv_init.c \ - server/sv_log.c \ - server/sv_main.c \ - server/sv_mapcycle.c \ - server/sv_rma.c \ - server/sv_send.c \ - server/sv_user.c \ - server/sv_world.c \ + server/sv_ccmds.cpp \ + server/sv_game.cpp \ + server/sv_init.cpp \ + server/sv_log.cpp \ + server/sv_main.cpp \ + server/sv_mapcycle.cpp \ + server/sv_rma.cpp \ + server/sv_send.cpp \ + server/sv_user.cpp \ + server/sv_world.cpp \ \ - client/renderer/r_array.c \ - client/renderer/r_bsp.c \ - client/renderer/r_draw.c \ - client/renderer/r_corona.c \ - client/renderer/r_entity.c \ - client/renderer/r_font.c \ - client/renderer/r_flare.c \ - client/renderer/r_framebuffer.c \ - client/renderer/r_geoscape.c \ - client/renderer/r_image.c \ - client/renderer/r_light.c \ - client/renderer/r_lightmap.c \ - client/renderer/r_main.c \ - client/renderer/r_material.c \ - client/renderer/r_matrix.c \ - client/renderer/r_misc.c \ - client/renderer/r_mesh.c \ - client/renderer/r_mesh_anim.c \ - client/renderer/r_model.c \ - client/renderer/r_model_alias.c \ - client/renderer/r_model_brush.c \ - client/renderer/r_model_dpm.c \ - client/renderer/r_model_md2.c \ - client/renderer/r_model_md3.c \ - client/renderer/r_model_obj.c \ - client/renderer/r_particle.c \ - client/renderer/r_program.c \ - client/renderer/r_sdl.c \ - client/renderer/r_surface.c \ - client/renderer/r_state.c \ - client/renderer/r_sphere.c \ - client/renderer/r_thread.c \ + client/renderer/r_array.cpp \ + client/renderer/r_bsp.cpp \ + client/renderer/r_draw.cpp \ + client/renderer/r_corona.cpp \ + client/renderer/r_entity.cpp \ + client/renderer/r_font.cpp \ + client/renderer/r_flare.cpp \ + client/renderer/r_framebuffer.cpp \ + client/renderer/r_geoscape.cpp \ + client/renderer/r_image.cpp \ + client/renderer/r_light.cpp \ + client/renderer/r_lightmap.cpp \ + client/renderer/r_main.cpp \ + client/renderer/r_material.cpp \ + client/renderer/r_matrix.cpp \ + client/renderer/r_misc.cpp \ + client/renderer/r_mesh.cpp \ + client/renderer/r_mesh_anim.cpp \ + client/renderer/r_model.cpp \ + client/renderer/r_model_alias.cpp \ + client/renderer/r_model_brush.cpp \ + client/renderer/r_model_dpm.cpp \ + client/renderer/r_model_md2.cpp \ + client/renderer/r_model_md3.cpp \ + client/renderer/r_model_obj.cpp \ + client/renderer/r_particle.cpp \ + client/renderer/r_program.cpp \ + client/renderer/r_sdl.cpp \ + client/renderer/r_surface.cpp \ + client/renderer/r_state.cpp \ + client/renderer/r_sphere.cpp \ + client/renderer/r_thread.cpp \ \ - shared/mathlib_extra.c \ - shared/bfd.c \ - shared/entitiesdef.c \ - shared/stringhunk.c \ - shared/byte.c \ - shared/mutex.c \ - shared/images.c \ + shared/mathlib_extra.cpp \ + shared/bfd.cpp \ + shared/entitiesdef.cpp \ + shared/stringhunk.cpp \ + shared/byte.cpp \ + shared/mutex.cpp \ + shared/images.cpp \ \ $(game_SRCS) \ \ @@ -269,29 +269,29 @@ $(TARGET)_SRCS = \ ifeq ($(TARGET_OS),mingw32) $(TARGET)_SRCS += \ - ports/windows/win_backtrace.c \ - ports/windows/win_console.c \ - ports/windows/win_shared.c \ + ports/windows/win_backtrace.cpp \ + ports/windows/win_console.cpp \ + ports/windows/win_shared.cpp \ ports/windows/ufo.rc else $(TARGET)_SRCS += \ - ports/unix/unix_console.c \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/unix/unix_console.cpp \ + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp endif ifeq ($(HARD_LINKED_GAME),1) - $(TARGET)_SRCS += shared/mathlib.c \ - shared/shared.c \ - shared/utf8.c \ - shared/parse.c \ - shared/infostring.c \ + $(TARGET)_SRCS += shared/mathlib.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ + shared/parse.cpp \ + shared/infostring.cpp \ \ - game/q_shared.c \ - game/chr_shared.c \ - game/inv_shared.c \ - game/inventory.c + game/q_shared.cpp \ + game/chr_shared.cpp \ + game/inv_shared.cpp \ + game/inventory.cpp endif ifeq ($(HARD_LINKED_CGAME),1) diff --git a/build/modules/ufo.mk b/build/modules/ufo.mk index 5159277ee5f..78d33685a19 100644 --- a/build/modules/ufo.mk +++ b/build/modules/ufo.mk @@ -12,266 +12,266 @@ $(TARGET)_CFLAGS += -DCOMPILE_UFO $(BFD_CFLAGS) $(SDL_CFLAGS) $(SDL_TTF_CFLAGS $(TARGET)_LDFLAGS += -lpng -ljpeg $(BFD_LIBS) $(INTL_LIBS) $(SDL_TTF_LIBS) $(SDL_IMAGE_LIBS) $(SDL_MIXER_LIBS) $(OPENGL_LIBS) $(SDL_LIBS) $(CURL_LIBS) $(THEORA_LIBS) $(XVID_LIBS) $(VORBIS_LIBS) $(OGG_LIBS) $(MXML_LIBS) $(SO_LIBS) -lz $(TARGET)_SRCS = \ - client/cl_console.c \ - client/cl_http.c \ - client/cl_inventory.c \ - client/cl_inventory_callbacks.c \ - client/cl_irc.c \ - client/cl_language.c \ - client/cl_main.c \ - client/cl_menu.c \ - client/cl_screen.c \ - client/cl_team.c \ - client/cl_tip.c \ - client/cl_tutorials.c \ - client/cl_video.c \ + client/cl_console.cpp \ + client/cl_http.cpp \ + client/cl_inventory.cpp \ + client/cl_inventory_callbacks.cpp \ + client/cl_irc.cpp \ + client/cl_language.cpp \ + client/cl_main.cpp \ + client/cl_menu.cpp \ + client/cl_screen.cpp \ + client/cl_team.cpp \ + client/cl_tip.cpp \ + client/cl_tutorials.cpp \ + client/cl_video.cpp \ \ - client/input/cl_input.c \ - client/input/cl_joystick.c \ - client/input/cl_keys.c \ + client/input/cl_input.cpp \ + client/input/cl_joystick.cpp \ + client/input/cl_keys.cpp \ \ - client/cinematic/cl_cinematic.c \ - client/cinematic/cl_cinematic_roq.c \ - client/cinematic/cl_cinematic_ogm.c \ - client/cinematic/cl_sequence.c \ + client/cinematic/cl_cinematic.cpp \ + client/cinematic/cl_cinematic_roq.cpp \ + client/cinematic/cl_cinematic_ogm.cpp \ + client/cinematic/cl_sequence.cpp \ \ - client/battlescape/cl_actor.c \ - client/battlescape/cl_battlescape.c \ - client/battlescape/cl_camera.c \ - client/battlescape/cl_hud.c \ - client/battlescape/cl_hud_callbacks.c \ - client/battlescape/cl_localentity.c \ - client/battlescape/cl_parse.c \ - client/battlescape/cl_particle.c \ - client/battlescape/cl_radar.c \ - client/battlescape/cl_ugv.c \ - client/battlescape/cl_view.c \ - client/battlescape/cl_spawn.c \ + client/battlescape/cl_actor.cpp \ + client/battlescape/cl_battlescape.cpp \ + client/battlescape/cl_camera.cpp \ + client/battlescape/cl_hud.cpp \ + client/battlescape/cl_hud_callbacks.cpp \ + client/battlescape/cl_localentity.cpp \ + client/battlescape/cl_parse.cpp \ + client/battlescape/cl_particle.cpp \ + client/battlescape/cl_radar.cpp \ + client/battlescape/cl_ugv.cpp \ + client/battlescape/cl_view.cpp \ + client/battlescape/cl_spawn.cpp \ \ - client/battlescape/events/e_main.c \ - client/battlescape/events/e_parse.c \ - client/battlescape/events/e_server.c \ - client/battlescape/events/event/actor/e_event_actoradd.c \ - client/battlescape/events/event/actor/e_event_actorappear.c \ - client/battlescape/events/event/actor/e_event_actorclientaction.c \ - client/battlescape/events/event/actor/e_event_actordie.c \ - client/battlescape/events/event/actor/e_event_actormove.c \ - client/battlescape/events/event/actor/e_event_actorresetclientaction.c \ - client/battlescape/events/event/actor/e_event_actorreservationchange.c \ - client/battlescape/events/event/actor/e_event_actorreactionfirechange.c \ - client/battlescape/events/event/actor/e_event_actorrevitalised.c \ - client/battlescape/events/event/actor/e_event_actorshoot.c \ - client/battlescape/events/event/actor/e_event_actorshoothidden.c \ - client/battlescape/events/event/actor/e_event_actorstartshoot.c \ - client/battlescape/events/event/actor/e_event_actorstatechange.c \ - client/battlescape/events/event/actor/e_event_actorstats.c \ - client/battlescape/events/event/actor/e_event_actorthrow.c \ - client/battlescape/events/event/actor/e_event_actorturn.c \ - client/battlescape/events/event/inventory/e_event_invadd.c \ - client/battlescape/events/event/inventory/e_event_invammo.c \ - client/battlescape/events/event/inventory/e_event_invdel.c \ - client/battlescape/events/event/inventory/e_event_invreload.c \ - client/battlescape/events/event/player/e_event_centerview.c \ - client/battlescape/events/event/player/e_event_doendround.c \ - client/battlescape/events/event/player/e_event_endroundannounce.c \ - client/battlescape/events/event/player/e_event_reset.c \ - client/battlescape/events/event/player/e_event_results.c \ - client/battlescape/events/event/player/e_event_startgame.c \ - client/battlescape/events/event/world/e_event_addbrushmodel.c \ - client/battlescape/events/event/world/e_event_addedict.c \ - client/battlescape/events/event/world/e_event_doorclose.c \ - client/battlescape/events/event/world/e_event_dooropen.c \ - client/battlescape/events/event/world/e_event_entappear.c \ - client/battlescape/events/event/world/e_event_entdestroy.c \ - client/battlescape/events/event/world/e_event_entperish.c \ - client/battlescape/events/event/world/e_event_explode.c \ - client/battlescape/events/event/world/e_event_particleappear.c \ - client/battlescape/events/event/world/e_event_particlespawn.c \ - client/battlescape/events/event/world/e_event_sound.c \ + client/battlescape/events/e_main.cpp \ + client/battlescape/events/e_parse.cpp \ + client/battlescape/events/e_server.cpp \ + client/battlescape/events/event/actor/e_event_actoradd.cpp \ + client/battlescape/events/event/actor/e_event_actorappear.cpp \ + client/battlescape/events/event/actor/e_event_actorclientaction.cpp \ + client/battlescape/events/event/actor/e_event_actordie.cpp \ + client/battlescape/events/event/actor/e_event_actormove.cpp \ + client/battlescape/events/event/actor/e_event_actorresetclientaction.cpp \ + client/battlescape/events/event/actor/e_event_actorreservationchange.cpp \ + client/battlescape/events/event/actor/e_event_actorreactionfirechange.cpp \ + client/battlescape/events/event/actor/e_event_actorrevitalised.cpp \ + client/battlescape/events/event/actor/e_event_actorshoot.cpp \ + client/battlescape/events/event/actor/e_event_actorshoothidden.cpp \ + client/battlescape/events/event/actor/e_event_actorstartshoot.cpp \ + client/battlescape/events/event/actor/e_event_actorstatechange.cpp \ + client/battlescape/events/event/actor/e_event_actorstats.cpp \ + client/battlescape/events/event/actor/e_event_actorthrow.cpp \ + client/battlescape/events/event/actor/e_event_actorturn.cpp \ + client/battlescape/events/event/inventory/e_event_invadd.cpp \ + client/battlescape/events/event/inventory/e_event_invammo.cpp \ + client/battlescape/events/event/inventory/e_event_invdel.cpp \ + client/battlescape/events/event/inventory/e_event_invreload.cpp \ + client/battlescape/events/event/player/e_event_centerview.cpp \ + client/battlescape/events/event/player/e_event_doendround.cpp \ + client/battlescape/events/event/player/e_event_endroundannounce.cpp \ + client/battlescape/events/event/player/e_event_reset.cpp \ + client/battlescape/events/event/player/e_event_results.cpp \ + client/battlescape/events/event/player/e_event_startgame.cpp \ + client/battlescape/events/event/world/e_event_addbrushmodel.cpp \ + client/battlescape/events/event/world/e_event_addedict.cpp \ + client/battlescape/events/event/world/e_event_doorclose.cpp \ + client/battlescape/events/event/world/e_event_dooropen.cpp \ + client/battlescape/events/event/world/e_event_entappear.cpp \ + client/battlescape/events/event/world/e_event_entdestroy.cpp \ + client/battlescape/events/event/world/e_event_entperish.cpp \ + client/battlescape/events/event/world/e_event_explode.cpp \ + client/battlescape/events/event/world/e_event_particleappear.cpp \ + client/battlescape/events/event/world/e_event_particlespawn.cpp \ + client/battlescape/events/event/world/e_event_sound.cpp \ \ - client/sound/s_music.c \ - client/sound/s_main.c \ - client/sound/s_mix.c \ - client/sound/s_sample.c \ + client/sound/s_music.cpp \ + client/sound/s_main.cpp \ + client/sound/s_mix.cpp \ + client/sound/s_sample.cpp \ \ - client/cgame/cl_game.c \ - client/cgame/cl_game_team.c \ + client/cgame/cl_game.cpp \ + client/cgame/cl_game_team.cpp \ \ - client/ui/ui_actions.c \ - client/ui/ui_behaviour.c \ - client/ui/ui_components.c \ - client/ui/ui_data.c \ - client/ui/ui_dragndrop.c \ - client/ui/ui_draw.c \ - client/ui/ui_expression.c \ - client/ui/ui_font.c \ - client/ui/ui_sprite.c \ - client/ui/ui_input.c \ - client/ui/ui_main.c \ + client/ui/ui_actions.cpp \ + client/ui/ui_behaviour.cpp \ + client/ui/ui_components.cpp \ + client/ui/ui_data.cpp \ + client/ui/ui_dragndrop.cpp \ + client/ui/ui_draw.cpp \ + client/ui/ui_expression.cpp \ + client/ui/ui_font.cpp \ + client/ui/ui_sprite.cpp \ + client/ui/ui_input.cpp \ + client/ui/ui_main.cpp \ client/ui/ui_node.cpp \ - client/ui/ui_nodes.c \ - client/ui/ui_parse.c \ - client/ui/ui_popup.c \ - client/ui/ui_render.c \ - client/ui/ui_sound.c \ - client/ui/ui_timer.c \ - client/ui/ui_tooltip.c \ - client/ui/ui_windows.c \ + client/ui/ui_nodes.cpp \ + client/ui/ui_parse.cpp \ + client/ui/ui_popup.cpp \ + client/ui/ui_render.cpp \ + client/ui/ui_sound.cpp \ + client/ui/ui_timer.cpp \ + client/ui/ui_tooltip.cpp \ + client/ui/ui_windows.cpp \ client/ui/node/ui_node_abstractnode.cpp \ - client/ui/node/ui_node_abstractvalue.c \ - client/ui/node/ui_node_abstractoption.c \ - client/ui/node/ui_node_abstractscrollbar.c \ - client/ui/node/ui_node_abstractscrollable.c \ - client/ui/node/ui_node_bar.c \ - client/ui/node/ui_node_base.c \ - client/ui/node/ui_node_baseinventory.c \ - client/ui/node/ui_node_battlescape.c \ - client/ui/node/ui_node_button.c \ - client/ui/node/ui_node_checkbox.c \ - client/ui/node/ui_node_data.c \ - client/ui/node/ui_node_video.c \ - client/ui/node/ui_node_container.c \ - client/ui/node/ui_node_controls.c \ - client/ui/node/ui_node_custombutton.c \ - client/ui/node/ui_node_editor.c \ - client/ui/node/ui_node_ekg.c \ - client/ui/node/ui_node_image.c \ - client/ui/node/ui_node_item.c \ - client/ui/node/ui_node_keybinding.c \ - client/ui/node/ui_node_linechart.c \ - client/ui/node/ui_node_map.c \ - client/ui/node/ui_node_material_editor.c \ - client/ui/node/ui_node_model.c \ - client/ui/node/ui_node_messagelist.c \ - client/ui/node/ui_node_option.c \ - client/ui/node/ui_node_optionlist.c \ - client/ui/node/ui_node_optiontree.c \ - client/ui/node/ui_node_panel.c \ - client/ui/node/ui_node_radar.c \ - client/ui/node/ui_node_radiobutton.c \ - client/ui/node/ui_node_rows.c \ - client/ui/node/ui_node_selectbox.c \ - client/ui/node/ui_node_sequence.c \ - client/ui/node/ui_node_string.c \ - client/ui/node/ui_node_special.c \ - client/ui/node/ui_node_spinner.c \ - client/ui/node/ui_node_spinner2.c \ - client/ui/node/ui_node_tab.c \ - client/ui/node/ui_node_tbar.c \ - client/ui/node/ui_node_text.c \ - client/ui/node/ui_node_text2.c \ - client/ui/node/ui_node_textlist.c \ - client/ui/node/ui_node_textentry.c \ - client/ui/node/ui_node_texture.c \ - client/ui/node/ui_node_todo.c \ - client/ui/node/ui_node_vscrollbar.c \ - client/ui/node/ui_node_window.c \ - client/ui/node/ui_node_zone.c \ + client/ui/node/ui_node_abstractvalue.cpp \ + client/ui/node/ui_node_abstractoption.cpp \ + client/ui/node/ui_node_abstractscrollbar.cpp \ + client/ui/node/ui_node_abstractscrollable.cpp \ + client/ui/node/ui_node_bar.cpp \ + client/ui/node/ui_node_base.cpp \ + client/ui/node/ui_node_baseinventory.cpp \ + client/ui/node/ui_node_battlescape.cpp \ + client/ui/node/ui_node_button.cpp \ + client/ui/node/ui_node_checkbox.cpp \ + client/ui/node/ui_node_data.cpp \ + client/ui/node/ui_node_video.cpp \ + client/ui/node/ui_node_container.cpp \ + client/ui/node/ui_node_controls.cpp \ + client/ui/node/ui_node_custombutton.cpp \ + client/ui/node/ui_node_editor.cpp \ + client/ui/node/ui_node_ekg.cpp \ + client/ui/node/ui_node_image.cpp \ + client/ui/node/ui_node_item.cpp \ + client/ui/node/ui_node_keybinding.cpp \ + client/ui/node/ui_node_linechart.cpp \ + client/ui/node/ui_node_map.cpp \ + client/ui/node/ui_node_material_editor.cpp \ + client/ui/node/ui_node_model.cpp \ + client/ui/node/ui_node_messagelist.cpp \ + client/ui/node/ui_node_option.cpp \ + client/ui/node/ui_node_optionlist.cpp \ + client/ui/node/ui_node_optiontree.cpp \ + client/ui/node/ui_node_panel.cpp \ + client/ui/node/ui_node_radar.cpp \ + client/ui/node/ui_node_radiobutton.cpp \ + client/ui/node/ui_node_rows.cpp \ + client/ui/node/ui_node_selectbox.cpp \ + client/ui/node/ui_node_sequence.cpp \ + client/ui/node/ui_node_string.cpp \ + client/ui/node/ui_node_special.cpp \ + client/ui/node/ui_node_spinner.cpp \ + client/ui/node/ui_node_spinner2.cpp \ + client/ui/node/ui_node_tab.cpp \ + client/ui/node/ui_node_tbar.cpp \ + client/ui/node/ui_node_text.cpp \ + client/ui/node/ui_node_text2.cpp \ + client/ui/node/ui_node_textlist.cpp \ + client/ui/node/ui_node_textentry.cpp \ + client/ui/node/ui_node_texture.cpp \ + client/ui/node/ui_node_todo.cpp \ + client/ui/node/ui_node_vscrollbar.cpp \ + client/ui/node/ui_node_window.cpp \ + client/ui/node/ui_node_zone.cpp \ \ - common/binaryexpressionparser.c \ - common/cmd.c \ - common/http.c \ - common/ioapi.c \ - common/unzip.c \ - common/bsp.c \ - common/grid.c \ - common/cmodel.c \ - common/common.c \ - common/cvar.c \ - common/files.c \ - common/list.c \ - common/md4.c \ - common/md5.c \ - common/mem.c \ - common/msg.c \ - common/net.c \ - common/netpack.c \ - common/dbuffer.c \ - common/pqueue.c \ - common/scripts.c \ - common/tracing.c \ - common/routing.c \ - common/xml.c \ + common/binaryexpressionparser.cpp \ + common/cmd.cpp \ + common/http.cpp \ + common/ioapi.cpp \ + common/unzip.cpp \ + common/bsp.cpp \ + common/grid.cpp \ + common/cmodel.cpp \ + common/common.cpp \ + common/cvar.cpp \ + common/files.cpp \ + common/list.cpp \ + common/md4.cpp \ + common/md5.cpp \ + common/mem.cpp \ + common/msg.cpp \ + common/net.cpp \ + common/netpack.cpp \ + common/dbuffer.cpp \ + common/pqueue.cpp \ + common/scripts.cpp \ + common/tracing.cpp \ + common/routing.cpp \ + common/xml.cpp \ \ - server/sv_ccmds.c \ - server/sv_game.c \ - server/sv_init.c \ - server/sv_log.c \ - server/sv_main.c \ - server/sv_mapcycle.c \ - server/sv_rma.c \ - server/sv_send.c \ - server/sv_user.c \ - server/sv_world.c \ + server/sv_ccmds.cpp \ + server/sv_game.cpp \ + server/sv_init.cpp \ + server/sv_log.cpp \ + server/sv_main.cpp \ + server/sv_mapcycle.cpp \ + server/sv_rma.cpp \ + server/sv_send.cpp \ + server/sv_user.cpp \ + server/sv_world.cpp \ \ - client/renderer/r_array.c \ - client/renderer/r_bsp.c \ - client/renderer/r_draw.c \ - client/renderer/r_corona.c \ - client/renderer/r_entity.c \ - client/renderer/r_font.c \ - client/renderer/r_flare.c \ - client/renderer/r_framebuffer.c \ - client/renderer/r_geoscape.c \ - client/renderer/r_image.c \ - client/renderer/r_light.c \ - client/renderer/r_lightmap.c \ - client/renderer/r_main.c \ - client/renderer/r_material.c \ - client/renderer/r_matrix.c \ - client/renderer/r_misc.c \ - client/renderer/r_mesh.c \ - client/renderer/r_mesh_anim.c \ - client/renderer/r_model.c \ - client/renderer/r_model_alias.c \ - client/renderer/r_model_brush.c \ - client/renderer/r_model_dpm.c \ - client/renderer/r_model_md2.c \ - client/renderer/r_model_md3.c \ - client/renderer/r_model_obj.c \ - client/renderer/r_particle.c \ - client/renderer/r_program.c \ - client/renderer/r_sdl.c \ - client/renderer/r_surface.c \ - client/renderer/r_state.c \ - client/renderer/r_sphere.c \ - client/renderer/r_thread.c \ + client/renderer/r_array.cpp \ + client/renderer/r_bsp.cpp \ + client/renderer/r_draw.cpp \ + client/renderer/r_corona.cpp \ + client/renderer/r_entity.cpp \ + client/renderer/r_font.cpp \ + client/renderer/r_flare.cpp \ + client/renderer/r_framebuffer.cpp \ + client/renderer/r_geoscape.cpp \ + client/renderer/r_image.cpp \ + client/renderer/r_light.cpp \ + client/renderer/r_lightmap.cpp \ + client/renderer/r_main.cpp \ + client/renderer/r_material.cpp \ + client/renderer/r_matrix.cpp \ + client/renderer/r_misc.cpp \ + client/renderer/r_mesh.cpp \ + client/renderer/r_mesh_anim.cpp \ + client/renderer/r_model.cpp \ + client/renderer/r_model_alias.cpp \ + client/renderer/r_model_brush.cpp \ + client/renderer/r_model_dpm.cpp \ + client/renderer/r_model_md2.cpp \ + client/renderer/r_model_md3.cpp \ + client/renderer/r_model_obj.cpp \ + client/renderer/r_particle.cpp \ + client/renderer/r_program.cpp \ + client/renderer/r_sdl.cpp \ + client/renderer/r_surface.cpp \ + client/renderer/r_state.cpp \ + client/renderer/r_sphere.cpp \ + client/renderer/r_thread.cpp \ \ - shared/bfd.c \ - shared/byte.c \ - shared/mathlib.c \ - shared/mathlib_extra.c \ - shared/mutex.c \ - shared/utf8.c \ - shared/images.c \ - shared/stringhunk.c \ - shared/infostring.c \ - shared/parse.c \ - shared/shared.c \ + shared/bfd.cpp \ + shared/byte.cpp \ + shared/mathlib.cpp \ + shared/mathlib_extra.cpp \ + shared/mutex.cpp \ + shared/utf8.cpp \ + shared/images.cpp \ + shared/stringhunk.cpp \ + shared/infostring.cpp \ + shared/parse.cpp \ + shared/shared.cpp \ \ - game/q_shared.c \ - game/chr_shared.c \ - game/inv_shared.c \ - game/inventory.c \ + game/q_shared.cpp \ + game/chr_shared.cpp \ + game/inv_shared.cpp \ + game/inventory.cpp \ \ $(MXML_SRCS) ifneq ($(findstring $(TARGET_OS), netbsd freebsd linux),) $(TARGET)_SRCS += \ - ports/linux/linux_main.c \ - ports/unix/unix_console.c \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/linux/linux_main.cpp \ + ports/unix/unix_console.cpp \ + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp $(TARGET)_LDFLAGS += endif ifeq ($(TARGET_OS),mingw32) $(TARGET)_SRCS +=\ - ports/windows/win_backtrace.c \ - ports/windows/win_console.c \ - ports/windows/win_shared.c \ - ports/windows/win_main.c \ + ports/windows/win_backtrace.cpp \ + ports/windows/win_console.cpp \ + ports/windows/win_shared.cpp \ + ports/windows/win_main.cpp \ ports/windows/ufo.rc $(TARGET)_LDFLAGS += endif @@ -279,31 +279,31 @@ endif ifeq ($(TARGET_OS),darwin) $(TARGET)_SRCS += \ ports/macosx/osx_main.m \ - ports/unix/unix_console.c \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/unix/unix_console.cpp \ + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp $(TARGET)_LDFLAGS += endif ifeq ($(TARGET_OS),solaris) $(TARGET)_SRCS += \ - ports/solaris/solaris_main.c \ - ports/unix/unix_console.c \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/solaris/solaris_main.cpp \ + ports/unix/unix_console.cpp \ + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp $(TARGET)_LDFLAGS += endif ifeq ($(TARGET_OS),android) $(TARGET)_SRCS += \ - ports/android/android_console.c \ - ports/android/android_debugger.c \ - ports/android/android_main.c \ - ports/android/android_system.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_files.c + ports/android/android_console.cpp \ + ports/android/android_debugger.cpp \ + ports/android/android_main.cpp \ + ports/android/android_system.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_files.cpp endif ifeq ($(HARD_LINKED_GAME),1) diff --git a/build/modules/ufo2map.mk b/build/modules/ufo2map.mk index 9b4079d5376..ad95f97da3b 100644 --- a/build/modules/ufo2map.mk +++ b/build/modules/ufo2map.mk @@ -16,56 +16,56 @@ ifeq ($(SSE),1) endif $(TARGET)_SRCS = \ - tools/ufo2map/ufo2map.c \ - tools/ufo2map/lighting.c \ - tools/ufo2map/bsp.c \ - tools/ufo2map/bspbrush.c \ - tools/ufo2map/csg.c \ - tools/ufo2map/faces.c \ - tools/ufo2map/levels.c \ - tools/ufo2map/lightmap.c \ - tools/ufo2map/map.c \ - tools/ufo2map/patches.c \ - tools/ufo2map/portals.c \ - tools/ufo2map/routing.c \ - tools/ufo2map/textures.c \ - tools/ufo2map/tree.c \ - tools/ufo2map/threads.c \ - tools/ufo2map/writebsp.c \ - tools/ufo2map/check/checkentities.c \ - tools/ufo2map/check/checklib.c \ - tools/ufo2map/check/check.c \ - tools/ufo2map/common/aselib.c \ - tools/ufo2map/common/bspfile.c \ - tools/ufo2map/common/polylib.c \ - tools/ufo2map/common/scriplib.c \ - tools/ufo2map/common/trace.c \ + tools/ufo2map/ufo2map.cpp \ + tools/ufo2map/lighting.cpp \ + tools/ufo2map/bsp.cpp \ + tools/ufo2map/bspbrush.cpp \ + tools/ufo2map/csg.cpp \ + tools/ufo2map/faces.cpp \ + tools/ufo2map/levels.cpp \ + tools/ufo2map/lightmap.cpp \ + tools/ufo2map/map.cpp \ + tools/ufo2map/patches.cpp \ + tools/ufo2map/portals.cpp \ + tools/ufo2map/routing.cpp \ + tools/ufo2map/textures.cpp \ + tools/ufo2map/tree.cpp \ + tools/ufo2map/threads.cpp \ + tools/ufo2map/writebsp.cpp \ + tools/ufo2map/check/checkentities.cpp \ + tools/ufo2map/check/checklib.cpp \ + tools/ufo2map/check/check.cpp \ + tools/ufo2map/common/aselib.cpp \ + tools/ufo2map/common/bspfile.cpp \ + tools/ufo2map/common/polylib.cpp \ + tools/ufo2map/common/scriplib.cpp \ + tools/ufo2map/common/trace.cpp \ \ - shared/mathlib.c \ - shared/mutex.c \ - shared/byte.c \ - shared/images.c \ - shared/parse.c \ - shared/shared.c \ - shared/entitiesdef.c \ - shared/utf8.c \ + shared/mathlib.cpp \ + shared/mutex.cpp \ + shared/byte.cpp \ + shared/images.cpp \ + shared/parse.cpp \ + shared/shared.cpp \ + shared/entitiesdef.cpp \ + shared/utf8.cpp \ \ - common/files.c \ - common/list.c \ - common/mem.c \ - common/unzip.c \ - common/tracing.c \ - common/routing.c \ - common/ioapi.c + common/files.cpp \ + common/list.cpp \ + common/mem.cpp \ + common/unzip.cpp \ + common/tracing.cpp \ + common/routing.cpp \ + common/ioapi.cpp ifeq ($(TARGET_OS),mingw32) $(TARGET)_SRCS+=\ - ports/windows/win_shared.c + ports/windows/win_shared.cpp else $(TARGET)_SRCS+= \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp endif $(TARGET)_OBJS := $(call ASSEMBLE_OBJECTS,$(TARGET)) diff --git a/build/modules/ufoded.mk b/build/modules/ufoded.mk index 19569cf5e09..4e984ac1f5a 100644 --- a/build/modules/ufoded.mk +++ b/build/modules/ufoded.mk @@ -12,94 +12,94 @@ $(TARGET)_LDFLAGS += $(BFD_LIBS) $(INTL_LIBS) $(SDL_LIBS) $(CURL_LIBS) $(SO_LIB $(TARGET)_CFLAGS += -DCOMPILE_UFO -DDEDICATED_ONLY $(BFD_CFLAGS) $(INTL_CFLAGS) $(SDL_CFLAGS) $(CURL_CFLAGS) $(TARGET)_SRCS = \ - common/cmd.c \ - common/http.c \ - common/ioapi.c \ - common/unzip.c \ - common/bsp.c \ - common/grid.c \ - common/cmodel.c \ - common/common.c \ - common/cvar.c \ - common/files.c \ - common/list.c \ - common/md4.c \ - common/md5.c \ - common/mem.c \ - common/msg.c \ - common/dbuffer.c \ - common/net.c \ - common/netpack.c \ - common/pqueue.c \ - common/scripts.c \ - common/tracing.c \ - common/routing.c \ + common/cmd.cpp \ + common/http.cpp \ + common/ioapi.cpp \ + common/unzip.cpp \ + common/bsp.cpp \ + common/grid.cpp \ + common/cmodel.cpp \ + common/common.cpp \ + common/cvar.cpp \ + common/files.cpp \ + common/list.cpp \ + common/md4.cpp \ + common/md5.cpp \ + common/mem.cpp \ + common/msg.cpp \ + common/dbuffer.cpp \ + common/net.cpp \ + common/netpack.cpp \ + common/pqueue.cpp \ + common/scripts.cpp \ + common/tracing.cpp \ + common/routing.cpp \ \ - server/sv_ccmds.c \ - server/sv_game.c \ - server/sv_init.c \ - server/sv_log.c \ - server/sv_main.c \ - server/sv_mapcycle.c \ - server/sv_rma.c \ - server/sv_send.c \ - server/sv_user.c \ - server/sv_world.c \ - server/sv_clientstub.c \ + server/sv_ccmds.cpp \ + server/sv_game.cpp \ + server/sv_init.cpp \ + server/sv_log.cpp \ + server/sv_main.cpp \ + server/sv_mapcycle.cpp \ + server/sv_rma.cpp \ + server/sv_send.cpp \ + server/sv_user.cpp \ + server/sv_world.cpp \ + server/sv_clientstub.cpp \ \ - shared/bfd.c \ - shared/byte.c \ - shared/stringhunk.c \ - shared/infostring.c \ - shared/mathlib.c \ - shared/mutex.c \ - shared/parse.c \ - shared/shared.c \ - shared/utf8.c \ + shared/bfd.cpp \ + shared/byte.cpp \ + shared/stringhunk.cpp \ + shared/infostring.cpp \ + shared/mathlib.cpp \ + shared/mutex.cpp \ + shared/parse.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ \ - game/q_shared.c \ - game/inv_shared.c \ - game/chr_shared.c + game/q_shared.cpp \ + game/inv_shared.cpp \ + game/chr_shared.cpp ifneq ($(findstring $(TARGET_OS), netbsd freebsd linux),) $(TARGET)_SRCS += \ - ports/linux/linux_main.c \ - ports/unix/unix_console.c \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/linux/linux_main.cpp \ + ports/unix/unix_console.cpp \ + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp endif ifeq ($(TARGET_OS),mingw32) $(TARGET)_SRCS += \ - ports/windows/win_backtrace.c \ - ports/windows/win_console.c \ - ports/windows/win_shared.c \ - ports/windows/win_main.c \ + ports/windows/win_backtrace.cpp \ + ports/windows/win_console.cpp \ + ports/windows/win_shared.cpp \ + ports/windows/win_main.cpp \ ports/windows/ufo.rc endif ifeq ($(TARGET_OS),darwin) $(TARGET)_SRCS += \ ports/macosx/osx_main.m \ - ports/unix/unix_console.c \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/unix/unix_console.cpp \ + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp endif ifeq ($(TARGET_OS),solaris) $(TARGET)_SRCS += \ - ports/solaris/solaris_main.c \ - ports/unix/unix_console.c \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/solaris/solaris_main.cpp \ + ports/unix/unix_console.cpp \ + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp endif ifeq ($(HARD_LINKED_GAME),1) $(TARGET)_SRCS += $(game_SRCS) \ - game/inventory.c + game/inventory.cpp else $(TARGET)_DEPS := game endif diff --git a/build/modules/ufomodel.mk b/build/modules/ufomodel.mk index 2e31a3a4998..5016397e9b7 100644 --- a/build/modules/ufomodel.mk +++ b/build/modules/ufomodel.mk @@ -16,37 +16,37 @@ ifeq ($(SSE),1) endif $(TARGET)_SRCS = \ - tools/ufomodel/ufomodel.c \ + tools/ufomodel/ufomodel.cpp \ \ - shared/mathlib.c \ - shared/mutex.c \ - shared/byte.c \ - shared/images.c \ - shared/parse.c \ - shared/shared.c \ - shared/utf8.c \ + shared/mathlib.cpp \ + shared/mutex.cpp \ + shared/byte.cpp \ + shared/images.cpp \ + shared/parse.cpp \ + shared/shared.cpp \ + shared/utf8.cpp \ \ - common/files.c \ - common/list.c \ - common/mem.c \ - common/unzip.c \ - common/ioapi.c \ + common/files.cpp \ + common/list.cpp \ + common/mem.cpp \ + common/unzip.cpp \ + common/ioapi.cpp \ \ - client/renderer/r_model.c \ - client/renderer/r_model_alias.c \ - client/renderer/r_model_dpm.c \ - client/renderer/r_model_md2.c \ - client/renderer/r_model_md3.c \ - client/renderer/r_model_obj.c + client/renderer/r_model.cpp \ + client/renderer/r_model_alias.cpp \ + client/renderer/r_model_dpm.cpp \ + client/renderer/r_model_md2.cpp \ + client/renderer/r_model_md3.cpp \ + client/renderer/r_model_obj.cpp ifeq ($(TARGET_OS),mingw32) $(TARGET)_SRCS+=\ - ports/windows/win_shared.c + ports/windows/win_shared.cpp else $(TARGET)_SRCS+= \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp endif $(TARGET)_OBJS := $(call ASSEMBLE_OBJECTS,$(TARGET)) diff --git a/build/modules/ufoslicer.mk b/build/modules/ufoslicer.mk index 5cfd4821a0a..8e8c361064e 100644 --- a/build/modules/ufoslicer.mk +++ b/build/modules/ufoslicer.mk @@ -12,34 +12,34 @@ $(TARGET)_LDFLAGS += -lpng -ljpeg -lm -lz $(SDL_LIBS) $(SDL_IMAGE_LIBS) $(TARGET)_CFLAGS += -DCOMPILE_MAP $(SDL_CFLAGS) $(SDL_IMAGE_CFLAGS) $(TARGET)_SRCS = \ - tools/ufoslicer.c \ + tools/ufoslicer.cpp \ \ - common/bspslicer.c \ - common/files.c \ - common/list.c \ - common/mem.c \ - common/unzip.c \ - common/ioapi.c \ + common/bspslicer.cpp \ + common/files.cpp \ + common/list.cpp \ + common/mem.cpp \ + common/unzip.cpp \ + common/ioapi.cpp \ \ - tools/ufo2map/common/bspfile.c \ - tools/ufo2map/common/scriplib.c \ + tools/ufo2map/common/bspfile.cpp \ + tools/ufo2map/common/scriplib.cpp \ \ - shared/mathlib.c \ - shared/mutex.c \ - shared/byte.c \ - shared/images.c \ - shared/parse.c \ - shared/shared.c \ - shared/utf8.c + shared/mathlib.cpp \ + shared/mutex.cpp \ + shared/byte.cpp \ + shared/images.cpp \ + shared/parse.cpp \ + shared/shared.cpp \ + shared/utf8.cpp ifeq ($(TARGET_OS),mingw32) $(TARGET)_SRCS+=\ - ports/windows/win_shared.c + ports/windows/win_shared.cpp else $(TARGET)_SRCS+= \ - ports/unix/unix_files.c \ - ports/unix/unix_shared.c \ - ports/unix/unix_main.c + ports/unix/unix_files.cpp \ + ports/unix/unix_shared.cpp \ + ports/unix/unix_main.cpp endif $(TARGET)_OBJS := $(call ASSEMBLE_OBJECTS,$(TARGET)) diff --git a/build/projects/game.cbp b/build/projects/game.cbp index dba427cf8c6..b731a90ba62 100644 --- a/build/projects/game.cbp +++ b/build/projects/game.cbp @@ -63,205 +63,205 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/build/projects/testall.cbp b/build/projects/testall.cbp index 56e563a0f79..9a6663a8e99 100644 --- a/build/projects/testall.cbp +++ b/build/projects/testall.cbp @@ -115,1037 +115,1037 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1182,141 +1182,141 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/build/projects/ufo.cbp b/build/projects/ufo.cbp index 7c21be8d4f2..4c942fdc4b8 100644 --- a/build/projects/ufo.cbp +++ b/build/projects/ufo.cbp @@ -201,969 +201,969 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1171,144 +1171,144 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1346,91 +1346,91 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/build/projects/ufo2map.cbp b/build/projects/ufo2map.cbp index 4c9be876532..a55586749f0 100644 --- a/build/projects/ufo2map.cbp +++ b/build/projects/ufo2map.cbp @@ -74,152 +74,152 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/build/projects/ufoded.cbp b/build/projects/ufoded.cbp index 106569c1bdb..059048dbfd5 100644 --- a/build/projects/ufoded.cbp +++ b/build/projects/ufoded.cbp @@ -81,169 +81,169 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/build/projects/ufomodel.cbp b/build/projects/ufomodel.cbp index c8a821707da..9be4b54f7fa 100644 --- a/build/projects/ufomodel.cbp +++ b/build/projects/ufomodel.cbp @@ -82,76 +82,76 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/build/projects/uforadiant.cbp b/build/projects/uforadiant.cbp index a805daaab4b..e33435fc186 100644 --- a/build/projects/uforadiant.cbp +++ b/build/projects/uforadiant.cbp @@ -120,10 +120,10 @@ - + - + diff --git a/build/projects/ufoslicer.cbp b/build/projects/ufoslicer.cbp index 58bb3b64648..bd87674e374 100644 --- a/build/projects/ufoslicer.cbp +++ b/build/projects/ufoslicer.cbp @@ -80,55 +80,55 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/src/client/battlescape/cl_actor.c b/src/client/battlescape/cl_actor.cpp similarity index 100% rename from src/client/battlescape/cl_actor.c rename to src/client/battlescape/cl_actor.cpp diff --git a/src/client/battlescape/cl_battlescape.c b/src/client/battlescape/cl_battlescape.cpp similarity index 100% rename from src/client/battlescape/cl_battlescape.c rename to src/client/battlescape/cl_battlescape.cpp diff --git a/src/client/battlescape/cl_camera.c b/src/client/battlescape/cl_camera.cpp similarity index 100% rename from src/client/battlescape/cl_camera.c rename to src/client/battlescape/cl_camera.cpp diff --git a/src/client/battlescape/cl_hud.c b/src/client/battlescape/cl_hud.cpp similarity index 100% rename from src/client/battlescape/cl_hud.c rename to src/client/battlescape/cl_hud.cpp diff --git a/src/client/battlescape/cl_hud_callbacks.c b/src/client/battlescape/cl_hud_callbacks.cpp similarity index 100% rename from src/client/battlescape/cl_hud_callbacks.c rename to src/client/battlescape/cl_hud_callbacks.cpp diff --git a/src/client/battlescape/cl_localentity.c b/src/client/battlescape/cl_localentity.cpp similarity index 100% rename from src/client/battlescape/cl_localentity.c rename to src/client/battlescape/cl_localentity.cpp diff --git a/src/client/battlescape/cl_parse.c b/src/client/battlescape/cl_parse.cpp similarity index 100% rename from src/client/battlescape/cl_parse.c rename to src/client/battlescape/cl_parse.cpp diff --git a/src/client/battlescape/cl_particle.c b/src/client/battlescape/cl_particle.cpp similarity index 100% rename from src/client/battlescape/cl_particle.c rename to src/client/battlescape/cl_particle.cpp diff --git a/src/client/battlescape/cl_radar.c b/src/client/battlescape/cl_radar.cpp similarity index 100% rename from src/client/battlescape/cl_radar.c rename to src/client/battlescape/cl_radar.cpp diff --git a/src/client/battlescape/cl_spawn.c b/src/client/battlescape/cl_spawn.cpp similarity index 100% rename from src/client/battlescape/cl_spawn.c rename to src/client/battlescape/cl_spawn.cpp diff --git a/src/client/battlescape/cl_ugv.c b/src/client/battlescape/cl_ugv.cpp similarity index 100% rename from src/client/battlescape/cl_ugv.c rename to src/client/battlescape/cl_ugv.cpp diff --git a/src/client/battlescape/cl_view.c b/src/client/battlescape/cl_view.cpp similarity index 100% rename from src/client/battlescape/cl_view.c rename to src/client/battlescape/cl_view.cpp diff --git a/src/client/battlescape/events/e_main.c b/src/client/battlescape/events/e_main.cpp similarity index 100% rename from src/client/battlescape/events/e_main.c rename to src/client/battlescape/events/e_main.cpp diff --git a/src/client/battlescape/events/e_parse.c b/src/client/battlescape/events/e_parse.cpp similarity index 100% rename from src/client/battlescape/events/e_parse.c rename to src/client/battlescape/events/e_parse.cpp diff --git a/src/client/battlescape/events/e_server.c b/src/client/battlescape/events/e_server.cpp similarity index 100% rename from src/client/battlescape/events/e_server.c rename to src/client/battlescape/events/e_server.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actoradd.c b/src/client/battlescape/events/event/actor/e_event_actoradd.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actoradd.c rename to src/client/battlescape/events/event/actor/e_event_actoradd.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorappear.c b/src/client/battlescape/events/event/actor/e_event_actorappear.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorappear.c rename to src/client/battlescape/events/event/actor/e_event_actorappear.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorclientaction.c b/src/client/battlescape/events/event/actor/e_event_actorclientaction.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorclientaction.c rename to src/client/battlescape/events/event/actor/e_event_actorclientaction.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actordie.c b/src/client/battlescape/events/event/actor/e_event_actordie.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actordie.c rename to src/client/battlescape/events/event/actor/e_event_actordie.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actormove.c b/src/client/battlescape/events/event/actor/e_event_actormove.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actormove.c rename to src/client/battlescape/events/event/actor/e_event_actormove.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorreactionfirechange.c b/src/client/battlescape/events/event/actor/e_event_actorreactionfirechange.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorreactionfirechange.c rename to src/client/battlescape/events/event/actor/e_event_actorreactionfirechange.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorreservationchange.c b/src/client/battlescape/events/event/actor/e_event_actorreservationchange.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorreservationchange.c rename to src/client/battlescape/events/event/actor/e_event_actorreservationchange.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorresetclientaction.c b/src/client/battlescape/events/event/actor/e_event_actorresetclientaction.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorresetclientaction.c rename to src/client/battlescape/events/event/actor/e_event_actorresetclientaction.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorrevitalised.c b/src/client/battlescape/events/event/actor/e_event_actorrevitalised.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorrevitalised.c rename to src/client/battlescape/events/event/actor/e_event_actorrevitalised.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorshoot.c b/src/client/battlescape/events/event/actor/e_event_actorshoot.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorshoot.c rename to src/client/battlescape/events/event/actor/e_event_actorshoot.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorshoothidden.c b/src/client/battlescape/events/event/actor/e_event_actorshoothidden.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorshoothidden.c rename to src/client/battlescape/events/event/actor/e_event_actorshoothidden.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorstartshoot.c b/src/client/battlescape/events/event/actor/e_event_actorstartshoot.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorstartshoot.c rename to src/client/battlescape/events/event/actor/e_event_actorstartshoot.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorstatechange.c b/src/client/battlescape/events/event/actor/e_event_actorstatechange.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorstatechange.c rename to src/client/battlescape/events/event/actor/e_event_actorstatechange.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorstats.c b/src/client/battlescape/events/event/actor/e_event_actorstats.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorstats.c rename to src/client/battlescape/events/event/actor/e_event_actorstats.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorthrow.c b/src/client/battlescape/events/event/actor/e_event_actorthrow.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorthrow.c rename to src/client/battlescape/events/event/actor/e_event_actorthrow.cpp diff --git a/src/client/battlescape/events/event/actor/e_event_actorturn.c b/src/client/battlescape/events/event/actor/e_event_actorturn.cpp similarity index 100% rename from src/client/battlescape/events/event/actor/e_event_actorturn.c rename to src/client/battlescape/events/event/actor/e_event_actorturn.cpp diff --git a/src/client/battlescape/events/event/inventory/e_event_invadd.c b/src/client/battlescape/events/event/inventory/e_event_invadd.cpp similarity index 100% rename from src/client/battlescape/events/event/inventory/e_event_invadd.c rename to src/client/battlescape/events/event/inventory/e_event_invadd.cpp diff --git a/src/client/battlescape/events/event/inventory/e_event_invammo.c b/src/client/battlescape/events/event/inventory/e_event_invammo.cpp similarity index 100% rename from src/client/battlescape/events/event/inventory/e_event_invammo.c rename to src/client/battlescape/events/event/inventory/e_event_invammo.cpp diff --git a/src/client/battlescape/events/event/inventory/e_event_invdel.c b/src/client/battlescape/events/event/inventory/e_event_invdel.cpp similarity index 100% rename from src/client/battlescape/events/event/inventory/e_event_invdel.c rename to src/client/battlescape/events/event/inventory/e_event_invdel.cpp diff --git a/src/client/battlescape/events/event/inventory/e_event_invreload.c b/src/client/battlescape/events/event/inventory/e_event_invreload.cpp similarity index 100% rename from src/client/battlescape/events/event/inventory/e_event_invreload.c rename to src/client/battlescape/events/event/inventory/e_event_invreload.cpp diff --git a/src/client/battlescape/events/event/player/e_event_centerview.c b/src/client/battlescape/events/event/player/e_event_centerview.cpp similarity index 100% rename from src/client/battlescape/events/event/player/e_event_centerview.c rename to src/client/battlescape/events/event/player/e_event_centerview.cpp diff --git a/src/client/battlescape/events/event/player/e_event_doendround.c b/src/client/battlescape/events/event/player/e_event_doendround.cpp similarity index 100% rename from src/client/battlescape/events/event/player/e_event_doendround.c rename to src/client/battlescape/events/event/player/e_event_doendround.cpp diff --git a/src/client/battlescape/events/event/player/e_event_endroundannounce.c b/src/client/battlescape/events/event/player/e_event_endroundannounce.cpp similarity index 100% rename from src/client/battlescape/events/event/player/e_event_endroundannounce.c rename to src/client/battlescape/events/event/player/e_event_endroundannounce.cpp diff --git a/src/client/battlescape/events/event/player/e_event_reset.c b/src/client/battlescape/events/event/player/e_event_reset.cpp similarity index 100% rename from src/client/battlescape/events/event/player/e_event_reset.c rename to src/client/battlescape/events/event/player/e_event_reset.cpp diff --git a/src/client/battlescape/events/event/player/e_event_results.c b/src/client/battlescape/events/event/player/e_event_results.cpp similarity index 100% rename from src/client/battlescape/events/event/player/e_event_results.c rename to src/client/battlescape/events/event/player/e_event_results.cpp diff --git a/src/client/battlescape/events/event/player/e_event_startgame.c b/src/client/battlescape/events/event/player/e_event_startgame.cpp similarity index 100% rename from src/client/battlescape/events/event/player/e_event_startgame.c rename to src/client/battlescape/events/event/player/e_event_startgame.cpp diff --git a/src/client/battlescape/events/event/world/e_event_addbrushmodel.c b/src/client/battlescape/events/event/world/e_event_addbrushmodel.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_addbrushmodel.c rename to src/client/battlescape/events/event/world/e_event_addbrushmodel.cpp diff --git a/src/client/battlescape/events/event/world/e_event_addedict.c b/src/client/battlescape/events/event/world/e_event_addedict.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_addedict.c rename to src/client/battlescape/events/event/world/e_event_addedict.cpp diff --git a/src/client/battlescape/events/event/world/e_event_doorclose.c b/src/client/battlescape/events/event/world/e_event_doorclose.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_doorclose.c rename to src/client/battlescape/events/event/world/e_event_doorclose.cpp diff --git a/src/client/battlescape/events/event/world/e_event_dooropen.c b/src/client/battlescape/events/event/world/e_event_dooropen.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_dooropen.c rename to src/client/battlescape/events/event/world/e_event_dooropen.cpp diff --git a/src/client/battlescape/events/event/world/e_event_entappear.c b/src/client/battlescape/events/event/world/e_event_entappear.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_entappear.c rename to src/client/battlescape/events/event/world/e_event_entappear.cpp diff --git a/src/client/battlescape/events/event/world/e_event_entdestroy.c b/src/client/battlescape/events/event/world/e_event_entdestroy.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_entdestroy.c rename to src/client/battlescape/events/event/world/e_event_entdestroy.cpp diff --git a/src/client/battlescape/events/event/world/e_event_entperish.c b/src/client/battlescape/events/event/world/e_event_entperish.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_entperish.c rename to src/client/battlescape/events/event/world/e_event_entperish.cpp diff --git a/src/client/battlescape/events/event/world/e_event_explode.c b/src/client/battlescape/events/event/world/e_event_explode.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_explode.c rename to src/client/battlescape/events/event/world/e_event_explode.cpp diff --git a/src/client/battlescape/events/event/world/e_event_particleappear.c b/src/client/battlescape/events/event/world/e_event_particleappear.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_particleappear.c rename to src/client/battlescape/events/event/world/e_event_particleappear.cpp diff --git a/src/client/battlescape/events/event/world/e_event_particlespawn.c b/src/client/battlescape/events/event/world/e_event_particlespawn.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_particlespawn.c rename to src/client/battlescape/events/event/world/e_event_particlespawn.cpp diff --git a/src/client/battlescape/events/event/world/e_event_sound.c b/src/client/battlescape/events/event/world/e_event_sound.cpp similarity index 100% rename from src/client/battlescape/events/event/world/e_event_sound.c rename to src/client/battlescape/events/event/world/e_event_sound.cpp diff --git a/src/client/cgame/campaign/cl_game_campaign.c b/src/client/cgame/campaign/cl_game_campaign.cpp similarity index 100% rename from src/client/cgame/campaign/cl_game_campaign.c rename to src/client/cgame/campaign/cl_game_campaign.cpp diff --git a/src/client/cgame/campaign/cp_aircraft.c b/src/client/cgame/campaign/cp_aircraft.cpp similarity index 100% rename from src/client/cgame/campaign/cp_aircraft.c rename to src/client/cgame/campaign/cp_aircraft.cpp diff --git a/src/client/cgame/campaign/cp_aircraft_callbacks.c b/src/client/cgame/campaign/cp_aircraft_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_aircraft_callbacks.c rename to src/client/cgame/campaign/cp_aircraft_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_airfight.c b/src/client/cgame/campaign/cp_airfight.cpp similarity index 100% rename from src/client/cgame/campaign/cp_airfight.c rename to src/client/cgame/campaign/cp_airfight.cpp diff --git a/src/client/cgame/campaign/cp_alien_interest.c b/src/client/cgame/campaign/cp_alien_interest.cpp similarity index 100% rename from src/client/cgame/campaign/cp_alien_interest.c rename to src/client/cgame/campaign/cp_alien_interest.cpp diff --git a/src/client/cgame/campaign/cp_alienbase.c b/src/client/cgame/campaign/cp_alienbase.cpp similarity index 100% rename from src/client/cgame/campaign/cp_alienbase.c rename to src/client/cgame/campaign/cp_alienbase.cpp diff --git a/src/client/cgame/campaign/cp_aliencont.c b/src/client/cgame/campaign/cp_aliencont.cpp similarity index 100% rename from src/client/cgame/campaign/cp_aliencont.c rename to src/client/cgame/campaign/cp_aliencont.cpp diff --git a/src/client/cgame/campaign/cp_aliencont_callbacks.c b/src/client/cgame/campaign/cp_aliencont_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_aliencont_callbacks.c rename to src/client/cgame/campaign/cp_aliencont_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_auto_mission.c b/src/client/cgame/campaign/cp_auto_mission.cpp similarity index 100% rename from src/client/cgame/campaign/cp_auto_mission.c rename to src/client/cgame/campaign/cp_auto_mission.cpp diff --git a/src/client/cgame/campaign/cp_base.c b/src/client/cgame/campaign/cp_base.cpp similarity index 100% rename from src/client/cgame/campaign/cp_base.c rename to src/client/cgame/campaign/cp_base.cpp diff --git a/src/client/cgame/campaign/cp_base_callbacks.c b/src/client/cgame/campaign/cp_base_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_base_callbacks.c rename to src/client/cgame/campaign/cp_base_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_basedefence_callbacks.c b/src/client/cgame/campaign/cp_basedefence_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_basedefence_callbacks.c rename to src/client/cgame/campaign/cp_basedefence_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_building.c b/src/client/cgame/campaign/cp_building.cpp similarity index 100% rename from src/client/cgame/campaign/cp_building.c rename to src/client/cgame/campaign/cp_building.cpp diff --git a/src/client/cgame/campaign/cp_campaign.c b/src/client/cgame/campaign/cp_campaign.cpp similarity index 100% rename from src/client/cgame/campaign/cp_campaign.c rename to src/client/cgame/campaign/cp_campaign.cpp diff --git a/src/client/cgame/campaign/cp_capacity.c b/src/client/cgame/campaign/cp_capacity.cpp similarity index 100% rename from src/client/cgame/campaign/cp_capacity.c rename to src/client/cgame/campaign/cp_capacity.cpp diff --git a/src/client/cgame/campaign/cp_cgame_callbacks.c b/src/client/cgame/campaign/cp_cgame_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_cgame_callbacks.c rename to src/client/cgame/campaign/cp_cgame_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_employee.c b/src/client/cgame/campaign/cp_employee.cpp similarity index 100% rename from src/client/cgame/campaign/cp_employee.c rename to src/client/cgame/campaign/cp_employee.cpp diff --git a/src/client/cgame/campaign/cp_employee_callbacks.c b/src/client/cgame/campaign/cp_employee_callbacks.cpp similarity index 97% rename from src/client/cgame/campaign/cp_employee_callbacks.c rename to src/client/cgame/campaign/cp_employee_callbacks.cpp index 860fc9df149..cb9f5c774b7 100644 --- a/src/client/cgame/campaign/cp_employee_callbacks.c +++ b/src/client/cgame/campaign/cp_employee_callbacks.cpp @@ -40,11 +40,10 @@ static const int maxEmployeesPerPage = 15; static int employeeScrollPos = 0; -/* List of (hired) employees in the current category (employeeType). */ -linkedList_t *employeeList; /** @sa E_GetEmployeeByMenuIndex */ - -/* How many employees in current list (changes on every catergory change, too) */ -int employeesInCurrentList; +/* List of (hired) emplyoees in the current category (employeeType). */ +static linkedList_t *employeeList; /** @sa E_GetEmployeeByMenuIndex */ +/* How many employees in current list (changes on every category change, too) */ +static int employeesInCurrentList; /** * @brief Update GUI with the current number of employee per category diff --git a/src/client/cgame/campaign/cp_event.c b/src/client/cgame/campaign/cp_event.cpp similarity index 100% rename from src/client/cgame/campaign/cp_event.c rename to src/client/cgame/campaign/cp_event.cpp diff --git a/src/client/cgame/campaign/cp_fightequip_callbacks.c b/src/client/cgame/campaign/cp_fightequip_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_fightequip_callbacks.c rename to src/client/cgame/campaign/cp_fightequip_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_hospital.c b/src/client/cgame/campaign/cp_hospital.cpp similarity index 100% rename from src/client/cgame/campaign/cp_hospital.c rename to src/client/cgame/campaign/cp_hospital.cpp diff --git a/src/client/cgame/campaign/cp_hospital_callbacks.c b/src/client/cgame/campaign/cp_hospital_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_hospital_callbacks.c rename to src/client/cgame/campaign/cp_hospital_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_installation.c b/src/client/cgame/campaign/cp_installation.cpp similarity index 100% rename from src/client/cgame/campaign/cp_installation.c rename to src/client/cgame/campaign/cp_installation.cpp diff --git a/src/client/cgame/campaign/cp_installation_callbacks.c b/src/client/cgame/campaign/cp_installation_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_installation_callbacks.c rename to src/client/cgame/campaign/cp_installation_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_map.c b/src/client/cgame/campaign/cp_map.cpp similarity index 99% rename from src/client/cgame/campaign/cp_map.c rename to src/client/cgame/campaign/cp_map.cpp index 0ab825ee680..850c8915526 100644 --- a/src/client/cgame/campaign/cp_map.c +++ b/src/client/cgame/campaign/cp_map.cpp @@ -415,12 +415,6 @@ static qboolean MAP_IsMapPositionSelected (const uiNode_t* node, const vec2_t po return qfalse; } -/** - * @brief Typical zoom to use on the 3D geoscape to use same zoom values for both 2D and 3D geoscape - * @note Used to convert openGL coordinates of the sphere into screen coordinates - * @sa GLOBE_RADIUS */ -const float STANDARD_3D_ZOOM = 40.0f; - /** @brief radius of the globe in screen coordinates */ #define GLOBE_RADIUS EARTH_RADIUS * (ccs.zoom / STANDARD_3D_ZOOM) diff --git a/src/client/cgame/campaign/cp_mapfightequip.c b/src/client/cgame/campaign/cp_mapfightequip.cpp similarity index 100% rename from src/client/cgame/campaign/cp_mapfightequip.c rename to src/client/cgame/campaign/cp_mapfightequip.cpp diff --git a/src/client/cgame/campaign/cp_market.c b/src/client/cgame/campaign/cp_market.cpp similarity index 100% rename from src/client/cgame/campaign/cp_market.c rename to src/client/cgame/campaign/cp_market.cpp diff --git a/src/client/cgame/campaign/cp_market_callbacks.c b/src/client/cgame/campaign/cp_market_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_market_callbacks.c rename to src/client/cgame/campaign/cp_market_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_messageoptions.c b/src/client/cgame/campaign/cp_messageoptions.cpp similarity index 100% rename from src/client/cgame/campaign/cp_messageoptions.c rename to src/client/cgame/campaign/cp_messageoptions.cpp diff --git a/src/client/cgame/campaign/cp_messageoptions_callbacks.c b/src/client/cgame/campaign/cp_messageoptions_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_messageoptions_callbacks.c rename to src/client/cgame/campaign/cp_messageoptions_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_messages.c b/src/client/cgame/campaign/cp_messages.cpp similarity index 100% rename from src/client/cgame/campaign/cp_messages.c rename to src/client/cgame/campaign/cp_messages.cpp diff --git a/src/client/cgame/campaign/cp_mission_callbacks.c b/src/client/cgame/campaign/cp_mission_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_mission_callbacks.c rename to src/client/cgame/campaign/cp_mission_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_mission_triggers.c b/src/client/cgame/campaign/cp_mission_triggers.cpp similarity index 100% rename from src/client/cgame/campaign/cp_mission_triggers.c rename to src/client/cgame/campaign/cp_mission_triggers.cpp diff --git a/src/client/cgame/campaign/cp_missions.c b/src/client/cgame/campaign/cp_missions.cpp similarity index 100% rename from src/client/cgame/campaign/cp_missions.c rename to src/client/cgame/campaign/cp_missions.cpp diff --git a/src/client/cgame/campaign/cp_nation.c b/src/client/cgame/campaign/cp_nation.cpp similarity index 100% rename from src/client/cgame/campaign/cp_nation.c rename to src/client/cgame/campaign/cp_nation.cpp diff --git a/src/client/cgame/campaign/cp_overlay.c b/src/client/cgame/campaign/cp_overlay.cpp similarity index 100% rename from src/client/cgame/campaign/cp_overlay.c rename to src/client/cgame/campaign/cp_overlay.cpp diff --git a/src/client/cgame/campaign/cp_parse.c b/src/client/cgame/campaign/cp_parse.cpp similarity index 100% rename from src/client/cgame/campaign/cp_parse.c rename to src/client/cgame/campaign/cp_parse.cpp diff --git a/src/client/cgame/campaign/cp_popup.c b/src/client/cgame/campaign/cp_popup.cpp similarity index 100% rename from src/client/cgame/campaign/cp_popup.c rename to src/client/cgame/campaign/cp_popup.cpp diff --git a/src/client/cgame/campaign/cp_produce.c b/src/client/cgame/campaign/cp_produce.cpp similarity index 100% rename from src/client/cgame/campaign/cp_produce.c rename to src/client/cgame/campaign/cp_produce.cpp diff --git a/src/client/cgame/campaign/cp_produce_callbacks.c b/src/client/cgame/campaign/cp_produce_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_produce_callbacks.c rename to src/client/cgame/campaign/cp_produce_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_radar.c b/src/client/cgame/campaign/cp_radar.cpp similarity index 100% rename from src/client/cgame/campaign/cp_radar.c rename to src/client/cgame/campaign/cp_radar.cpp diff --git a/src/client/cgame/campaign/cp_rank.c b/src/client/cgame/campaign/cp_rank.cpp similarity index 100% rename from src/client/cgame/campaign/cp_rank.c rename to src/client/cgame/campaign/cp_rank.cpp diff --git a/src/client/cgame/campaign/cp_research.c b/src/client/cgame/campaign/cp_research.cpp similarity index 100% rename from src/client/cgame/campaign/cp_research.c rename to src/client/cgame/campaign/cp_research.cpp diff --git a/src/client/cgame/campaign/cp_research_callbacks.c b/src/client/cgame/campaign/cp_research_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_research_callbacks.c rename to src/client/cgame/campaign/cp_research_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_save.c b/src/client/cgame/campaign/cp_save.cpp similarity index 100% rename from src/client/cgame/campaign/cp_save.c rename to src/client/cgame/campaign/cp_save.cpp diff --git a/src/client/cgame/campaign/cp_statistics.c b/src/client/cgame/campaign/cp_statistics.cpp similarity index 100% rename from src/client/cgame/campaign/cp_statistics.c rename to src/client/cgame/campaign/cp_statistics.cpp diff --git a/src/client/cgame/campaign/cp_team.c b/src/client/cgame/campaign/cp_team.cpp similarity index 100% rename from src/client/cgame/campaign/cp_team.c rename to src/client/cgame/campaign/cp_team.cpp diff --git a/src/client/cgame/campaign/cp_team_callbacks.c b/src/client/cgame/campaign/cp_team_callbacks.cpp similarity index 98% rename from src/client/cgame/campaign/cp_team_callbacks.c rename to src/client/cgame/campaign/cp_team_callbacks.cpp index ef2de130c17..c68e1f467fa 100644 --- a/src/client/cgame/campaign/cp_team_callbacks.c +++ b/src/client/cgame/campaign/cp_team_callbacks.cpp @@ -33,8 +33,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "cp_team_callbacks.h" #include "cp_map.h" /* MAP_GetSelectedAircraft */ -linkedList_t *employeeList; /** @sa E_GetEmployeeByMenuIndex */ -int employeesInCurrentList; +/* List of (hired) emplyoees in the current category (employeeType). */ +static linkedList_t *employeeList; /** @sa E_GetEmployeeByMenuIndex */ +/* How many employees in current list (changes on every category change, too) */ +static int employeesInCurrentList; /*********************************************************** * Bindings diff --git a/src/client/cgame/campaign/cp_team_callbacks.h b/src/client/cgame/campaign/cp_team_callbacks.h index 2c9988753e0..ad3ccd18b44 100644 --- a/src/client/cgame/campaign/cp_team_callbacks.h +++ b/src/client/cgame/campaign/cp_team_callbacks.h @@ -26,11 +26,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef CP_TEAM_CALLBACKS_H #define CP_TEAM_CALLBACKS_H -/* List of (hired) emplyoees in the current category (employeeType). */ -extern linkedList_t *employeeList; /** @sa E_GetEmployeeByMenuIndex */ -/* How many employees in current list (changes on every category change, too) */ -extern int employeesInCurrentList; - void CP_TEAM_InitCallbacks(void); void CP_TEAM_ShutdownCallbacks(void); diff --git a/src/client/cgame/campaign/cp_time.c b/src/client/cgame/campaign/cp_time.cpp similarity index 100% rename from src/client/cgame/campaign/cp_time.c rename to src/client/cgame/campaign/cp_time.cpp diff --git a/src/client/cgame/campaign/cp_transfer.c b/src/client/cgame/campaign/cp_transfer.cpp similarity index 100% rename from src/client/cgame/campaign/cp_transfer.c rename to src/client/cgame/campaign/cp_transfer.cpp diff --git a/src/client/cgame/campaign/cp_transfer_callbacks.c b/src/client/cgame/campaign/cp_transfer_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_transfer_callbacks.c rename to src/client/cgame/campaign/cp_transfer_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_ufo.c b/src/client/cgame/campaign/cp_ufo.cpp similarity index 100% rename from src/client/cgame/campaign/cp_ufo.c rename to src/client/cgame/campaign/cp_ufo.cpp diff --git a/src/client/cgame/campaign/cp_ufopedia.c b/src/client/cgame/campaign/cp_ufopedia.cpp similarity index 100% rename from src/client/cgame/campaign/cp_ufopedia.c rename to src/client/cgame/campaign/cp_ufopedia.cpp diff --git a/src/client/cgame/campaign/cp_uforecovery.c b/src/client/cgame/campaign/cp_uforecovery.cpp similarity index 100% rename from src/client/cgame/campaign/cp_uforecovery.c rename to src/client/cgame/campaign/cp_uforecovery.cpp diff --git a/src/client/cgame/campaign/cp_uforecovery_callbacks.c b/src/client/cgame/campaign/cp_uforecovery_callbacks.cpp similarity index 100% rename from src/client/cgame/campaign/cp_uforecovery_callbacks.c rename to src/client/cgame/campaign/cp_uforecovery_callbacks.cpp diff --git a/src/client/cgame/campaign/cp_xvi.c b/src/client/cgame/campaign/cp_xvi.cpp similarity index 100% rename from src/client/cgame/campaign/cp_xvi.c rename to src/client/cgame/campaign/cp_xvi.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_baseattack.c b/src/client/cgame/campaign/missions/cp_mission_baseattack.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_baseattack.c rename to src/client/cgame/campaign/missions/cp_mission_baseattack.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_buildbase.c b/src/client/cgame/campaign/missions/cp_mission_buildbase.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_buildbase.c rename to src/client/cgame/campaign/missions/cp_mission_buildbase.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_harvest.c b/src/client/cgame/campaign/missions/cp_mission_harvest.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_harvest.c rename to src/client/cgame/campaign/missions/cp_mission_harvest.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_intercept.c b/src/client/cgame/campaign/missions/cp_mission_intercept.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_intercept.c rename to src/client/cgame/campaign/missions/cp_mission_intercept.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_recon.c b/src/client/cgame/campaign/missions/cp_mission_recon.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_recon.c rename to src/client/cgame/campaign/missions/cp_mission_recon.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_rescue.c b/src/client/cgame/campaign/missions/cp_mission_rescue.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_rescue.c rename to src/client/cgame/campaign/missions/cp_mission_rescue.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_supply.c b/src/client/cgame/campaign/missions/cp_mission_supply.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_supply.c rename to src/client/cgame/campaign/missions/cp_mission_supply.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_terror.c b/src/client/cgame/campaign/missions/cp_mission_terror.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_terror.c rename to src/client/cgame/campaign/missions/cp_mission_terror.cpp diff --git a/src/client/cgame/campaign/missions/cp_mission_xvi.c b/src/client/cgame/campaign/missions/cp_mission_xvi.cpp similarity index 100% rename from src/client/cgame/campaign/missions/cp_mission_xvi.c rename to src/client/cgame/campaign/missions/cp_mission_xvi.cpp diff --git a/src/client/cgame/cgame.h b/src/client/cgame/cgame.h index e2b4775af4c..1b7e19b6be4 100644 --- a/src/client/cgame/cgame.h +++ b/src/client/cgame/cgame.h @@ -265,7 +265,7 @@ typedef struct cgame_import_s { void (IMPORT *INV_ItemDescription) (const objDef_t *od); } cgame_import_t; -const cgame_export_t *GetCGameAPI(const cgame_import_t *import); +extern "C" const cgame_export_t *GetCGameAPI(const cgame_import_t *import); typedef const cgame_export_t *(*cgame_api_t) (const cgame_import_t *); diff --git a/src/client/cgame/cl_game.c b/src/client/cgame/cl_game.cpp similarity index 100% rename from src/client/cgame/cl_game.c rename to src/client/cgame/cl_game.cpp diff --git a/src/client/cgame/cl_game_team.c b/src/client/cgame/cl_game_team.cpp similarity index 100% rename from src/client/cgame/cl_game_team.c rename to src/client/cgame/cl_game_team.cpp diff --git a/src/client/cgame/multiplayer/cl_game_multiplayer.c b/src/client/cgame/multiplayer/cl_game_multiplayer.cpp similarity index 100% rename from src/client/cgame/multiplayer/cl_game_multiplayer.c rename to src/client/cgame/multiplayer/cl_game_multiplayer.cpp diff --git a/src/client/cgame/multiplayer/mp_callbacks.c b/src/client/cgame/multiplayer/mp_callbacks.cpp similarity index 100% rename from src/client/cgame/multiplayer/mp_callbacks.c rename to src/client/cgame/multiplayer/mp_callbacks.cpp diff --git a/src/client/cgame/multiplayer/mp_serverlist.c b/src/client/cgame/multiplayer/mp_serverlist.cpp similarity index 100% rename from src/client/cgame/multiplayer/mp_serverlist.c rename to src/client/cgame/multiplayer/mp_serverlist.cpp diff --git a/src/client/cgame/skirmish/cl_game_skirmish.c b/src/client/cgame/skirmish/cl_game_skirmish.cpp similarity index 100% rename from src/client/cgame/skirmish/cl_game_skirmish.c rename to src/client/cgame/skirmish/cl_game_skirmish.cpp diff --git a/src/client/cgame/staticcampaign/cl_game_staticcampaign.c b/src/client/cgame/staticcampaign/cl_game_staticcampaign.cpp similarity index 100% rename from src/client/cgame/staticcampaign/cl_game_staticcampaign.c rename to src/client/cgame/staticcampaign/cl_game_staticcampaign.cpp diff --git a/src/client/cgame/staticcampaign/scp_missions.c b/src/client/cgame/staticcampaign/scp_missions.cpp similarity index 100% rename from src/client/cgame/staticcampaign/scp_missions.c rename to src/client/cgame/staticcampaign/scp_missions.cpp diff --git a/src/client/cgame/staticcampaign/scp_parse.c b/src/client/cgame/staticcampaign/scp_parse.cpp similarity index 100% rename from src/client/cgame/staticcampaign/scp_parse.c rename to src/client/cgame/staticcampaign/scp_parse.cpp diff --git a/src/client/cinematic/cl_cinematic.c b/src/client/cinematic/cl_cinematic.cpp similarity index 100% rename from src/client/cinematic/cl_cinematic.c rename to src/client/cinematic/cl_cinematic.cpp diff --git a/src/client/cinematic/cl_cinematic_ogm.c b/src/client/cinematic/cl_cinematic_ogm.cpp similarity index 100% rename from src/client/cinematic/cl_cinematic_ogm.c rename to src/client/cinematic/cl_cinematic_ogm.cpp diff --git a/src/client/cinematic/cl_cinematic_roq.c b/src/client/cinematic/cl_cinematic_roq.cpp similarity index 100% rename from src/client/cinematic/cl_cinematic_roq.c rename to src/client/cinematic/cl_cinematic_roq.cpp diff --git a/src/client/cinematic/cl_sequence.c b/src/client/cinematic/cl_sequence.cpp similarity index 100% rename from src/client/cinematic/cl_sequence.c rename to src/client/cinematic/cl_sequence.cpp diff --git a/src/client/cl_console.c b/src/client/cl_console.cpp similarity index 100% rename from src/client/cl_console.c rename to src/client/cl_console.cpp diff --git a/src/client/cl_http.c b/src/client/cl_http.cpp similarity index 100% rename from src/client/cl_http.c rename to src/client/cl_http.cpp diff --git a/src/client/cl_inventory.c b/src/client/cl_inventory.cpp similarity index 100% rename from src/client/cl_inventory.c rename to src/client/cl_inventory.cpp diff --git a/src/client/cl_inventory_callbacks.c b/src/client/cl_inventory_callbacks.cpp similarity index 100% rename from src/client/cl_inventory_callbacks.c rename to src/client/cl_inventory_callbacks.cpp diff --git a/src/client/cl_irc.c b/src/client/cl_irc.cpp similarity index 100% rename from src/client/cl_irc.c rename to src/client/cl_irc.cpp diff --git a/src/client/cl_language.c b/src/client/cl_language.cpp similarity index 100% rename from src/client/cl_language.c rename to src/client/cl_language.cpp diff --git a/src/client/cl_main.c b/src/client/cl_main.cpp similarity index 100% rename from src/client/cl_main.c rename to src/client/cl_main.cpp diff --git a/src/client/cl_menu.c b/src/client/cl_menu.cpp similarity index 100% rename from src/client/cl_menu.c rename to src/client/cl_menu.cpp diff --git a/src/client/cl_screen.c b/src/client/cl_screen.cpp similarity index 100% rename from src/client/cl_screen.c rename to src/client/cl_screen.cpp diff --git a/src/client/cl_team.c b/src/client/cl_team.cpp similarity index 100% rename from src/client/cl_team.c rename to src/client/cl_team.cpp diff --git a/src/client/cl_tip.c b/src/client/cl_tip.cpp similarity index 100% rename from src/client/cl_tip.c rename to src/client/cl_tip.cpp diff --git a/src/client/cl_tutorials.c b/src/client/cl_tutorials.cpp similarity index 100% rename from src/client/cl_tutorials.c rename to src/client/cl_tutorials.cpp diff --git a/src/client/cl_video.c b/src/client/cl_video.cpp similarity index 100% rename from src/client/cl_video.c rename to src/client/cl_video.cpp diff --git a/src/client/input/cl_input.c b/src/client/input/cl_input.cpp similarity index 100% rename from src/client/input/cl_input.c rename to src/client/input/cl_input.cpp diff --git a/src/client/input/cl_joystick.c b/src/client/input/cl_joystick.cpp similarity index 100% rename from src/client/input/cl_joystick.c rename to src/client/input/cl_joystick.cpp diff --git a/src/client/input/cl_keys.c b/src/client/input/cl_keys.cpp similarity index 100% rename from src/client/input/cl_keys.c rename to src/client/input/cl_keys.cpp diff --git a/src/client/renderer/r_array.c b/src/client/renderer/r_array.cpp similarity index 100% rename from src/client/renderer/r_array.c rename to src/client/renderer/r_array.cpp diff --git a/src/client/renderer/r_bsp.c b/src/client/renderer/r_bsp.cpp similarity index 100% rename from src/client/renderer/r_bsp.c rename to src/client/renderer/r_bsp.cpp diff --git a/src/client/renderer/r_corona.c b/src/client/renderer/r_corona.cpp similarity index 100% rename from src/client/renderer/r_corona.c rename to src/client/renderer/r_corona.cpp diff --git a/src/client/renderer/r_draw.c b/src/client/renderer/r_draw.cpp similarity index 100% rename from src/client/renderer/r_draw.c rename to src/client/renderer/r_draw.cpp diff --git a/src/client/renderer/r_entity.c b/src/client/renderer/r_entity.cpp similarity index 100% rename from src/client/renderer/r_entity.c rename to src/client/renderer/r_entity.cpp diff --git a/src/client/renderer/r_flare.c b/src/client/renderer/r_flare.cpp similarity index 100% rename from src/client/renderer/r_flare.c rename to src/client/renderer/r_flare.cpp diff --git a/src/client/renderer/r_font.c b/src/client/renderer/r_font.cpp similarity index 100% rename from src/client/renderer/r_font.c rename to src/client/renderer/r_font.cpp diff --git a/src/client/renderer/r_framebuffer.c b/src/client/renderer/r_framebuffer.cpp similarity index 100% rename from src/client/renderer/r_framebuffer.c rename to src/client/renderer/r_framebuffer.cpp diff --git a/src/client/renderer/r_geoscape.c b/src/client/renderer/r_geoscape.cpp similarity index 99% rename from src/client/renderer/r_geoscape.c rename to src/client/renderer/r_geoscape.cpp index 4bf38e111dd..e6f21c1e3f7 100644 --- a/src/client/renderer/r_geoscape.c +++ b/src/client/renderer/r_geoscape.cpp @@ -32,8 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MARKER_SIZE 60.0 -extern const float STANDARD_3D_ZOOM; - /** * @brief Draw the day and night images of a flat geoscape * multitexture feature is used to blend the images @@ -295,13 +293,6 @@ void R_Draw3DMapMarkers (int x, int y, int w, int h, const vec3_t rotate, const glPopMatrix(); } -/** - * @brief Center position of skybox along z-axis. This is used to make sure we see only the inside of Skybox. - * @sa R_DrawStarfield - * @sa R_Setup2D - */ -const float SKYBOX_DEPTH = -9999.0f; - /** * @brief Half size of Skybox. * @note The bigger, the less perspective default you'll have, but the more you'll diff --git a/src/client/renderer/r_geoscape.h b/src/client/renderer/r_geoscape.h index 5b11c8685dc..99d1f8e1a6c 100644 --- a/src/client/renderer/r_geoscape.h +++ b/src/client/renderer/r_geoscape.h @@ -25,6 +25,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef R_GEOSCAPE_H #define R_GEOSCAPE_H +/** + * @brief Typical zoom to use on the 3D geoscape to use same zoom values for both 2D and 3D geoscape + * @note Used to convert openGL coordinates of the sphere into screen coordinates + * @sa GLOBE_RADIUS */ +#define STANDARD_3D_ZOOM 40.0f + void R_Draw3DGlobe(int x, int y, int w, int h, int day, int second, const vec3_t rotate, float zoom, const char *map, qboolean disableSolarRender, float ambient, qboolean overlayNation, qboolean overlayXVI, qboolean overlayRadar, image_t *r_xviTexture, image_t *r_radarTexture, qboolean renderNationGlow); void R_Draw2DMapMarkers(const vec2_t screenPos, float direction, const char *model, int skin); void R_Draw3DMapMarkers(int x, int y, int w, int h, const vec3_t rotate, const vec2_t pos, float direction, float earthRadius, const char *model, int skin); diff --git a/src/client/renderer/r_image.c b/src/client/renderer/r_image.cpp similarity index 100% rename from src/client/renderer/r_image.c rename to src/client/renderer/r_image.cpp diff --git a/src/client/renderer/r_light.c b/src/client/renderer/r_light.cpp similarity index 100% rename from src/client/renderer/r_light.c rename to src/client/renderer/r_light.cpp diff --git a/src/client/renderer/r_lightmap.c b/src/client/renderer/r_lightmap.cpp similarity index 100% rename from src/client/renderer/r_lightmap.c rename to src/client/renderer/r_lightmap.cpp diff --git a/src/client/renderer/r_main.c b/src/client/renderer/r_main.cpp similarity index 100% rename from src/client/renderer/r_main.c rename to src/client/renderer/r_main.cpp diff --git a/src/client/renderer/r_material.c b/src/client/renderer/r_material.cpp similarity index 100% rename from src/client/renderer/r_material.c rename to src/client/renderer/r_material.cpp diff --git a/src/client/renderer/r_matrix.c b/src/client/renderer/r_matrix.cpp similarity index 100% rename from src/client/renderer/r_matrix.c rename to src/client/renderer/r_matrix.cpp diff --git a/src/client/renderer/r_mesh.c b/src/client/renderer/r_mesh.cpp similarity index 100% rename from src/client/renderer/r_mesh.c rename to src/client/renderer/r_mesh.cpp diff --git a/src/client/renderer/r_mesh_anim.c b/src/client/renderer/r_mesh_anim.cpp similarity index 100% rename from src/client/renderer/r_mesh_anim.c rename to src/client/renderer/r_mesh_anim.cpp diff --git a/src/client/renderer/r_misc.c b/src/client/renderer/r_misc.cpp similarity index 100% rename from src/client/renderer/r_misc.c rename to src/client/renderer/r_misc.cpp diff --git a/src/client/renderer/r_model.c b/src/client/renderer/r_model.cpp similarity index 100% rename from src/client/renderer/r_model.c rename to src/client/renderer/r_model.cpp diff --git a/src/client/renderer/r_model_alias.c b/src/client/renderer/r_model_alias.cpp similarity index 100% rename from src/client/renderer/r_model_alias.c rename to src/client/renderer/r_model_alias.cpp diff --git a/src/client/renderer/r_model_brush.c b/src/client/renderer/r_model_brush.cpp similarity index 100% rename from src/client/renderer/r_model_brush.c rename to src/client/renderer/r_model_brush.cpp diff --git a/src/client/renderer/r_model_dpm.c b/src/client/renderer/r_model_dpm.cpp similarity index 100% rename from src/client/renderer/r_model_dpm.c rename to src/client/renderer/r_model_dpm.cpp diff --git a/src/client/renderer/r_model_md2.c b/src/client/renderer/r_model_md2.cpp similarity index 100% rename from src/client/renderer/r_model_md2.c rename to src/client/renderer/r_model_md2.cpp diff --git a/src/client/renderer/r_model_md3.c b/src/client/renderer/r_model_md3.cpp similarity index 100% rename from src/client/renderer/r_model_md3.c rename to src/client/renderer/r_model_md3.cpp diff --git a/src/client/renderer/r_model_obj.c b/src/client/renderer/r_model_obj.cpp similarity index 100% rename from src/client/renderer/r_model_obj.c rename to src/client/renderer/r_model_obj.cpp diff --git a/src/client/renderer/r_particle.c b/src/client/renderer/r_particle.cpp similarity index 100% rename from src/client/renderer/r_particle.c rename to src/client/renderer/r_particle.cpp diff --git a/src/client/renderer/r_program.c b/src/client/renderer/r_program.cpp similarity index 100% rename from src/client/renderer/r_program.c rename to src/client/renderer/r_program.cpp diff --git a/src/client/renderer/r_sdl.c b/src/client/renderer/r_sdl.cpp similarity index 100% rename from src/client/renderer/r_sdl.c rename to src/client/renderer/r_sdl.cpp diff --git a/src/client/renderer/r_sphere.c b/src/client/renderer/r_sphere.cpp similarity index 100% rename from src/client/renderer/r_sphere.c rename to src/client/renderer/r_sphere.cpp diff --git a/src/client/renderer/r_state.c b/src/client/renderer/r_state.cpp similarity index 99% rename from src/client/renderer/r_state.c rename to src/client/renderer/r_state.cpp index fa8a52e870e..e3b331f10fb 100644 --- a/src/client/renderer/r_state.c +++ b/src/client/renderer/r_state.cpp @@ -792,8 +792,6 @@ void R_Setup3D (void) R_CheckError(); } -extern const float SKYBOX_DEPTH; - /** * @sa R_Setup3D */ diff --git a/src/client/renderer/r_state.h b/src/client/renderer/r_state.h index da6276ff72b..33fcfc18efa 100644 --- a/src/client/renderer/r_state.h +++ b/src/client/renderer/r_state.h @@ -32,6 +32,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "r_light.h" #include "r_image.h" +/** + * @brief Center position of skybox along z-axis. This is used to make sure we see only the inside of Skybox. + * @sa R_DrawStarfield + * @sa R_Setup2D + */ +#define SKYBOX_DEPTH -9999.0f + /* vertex arrays are used for many things */ #define GL_ARRAY_LENGTH_CHUNK 4096 extern const vec2_t default_texcoords[4]; diff --git a/src/client/renderer/r_surface.c b/src/client/renderer/r_surface.cpp similarity index 100% rename from src/client/renderer/r_surface.c rename to src/client/renderer/r_surface.cpp diff --git a/src/client/renderer/r_thread.c b/src/client/renderer/r_thread.cpp similarity index 100% rename from src/client/renderer/r_thread.c rename to src/client/renderer/r_thread.cpp diff --git a/src/client/sound/s_main.c b/src/client/sound/s_main.cpp similarity index 100% rename from src/client/sound/s_main.c rename to src/client/sound/s_main.cpp diff --git a/src/client/sound/s_mix.c b/src/client/sound/s_mix.cpp similarity index 100% rename from src/client/sound/s_mix.c rename to src/client/sound/s_mix.cpp diff --git a/src/client/sound/s_music.c b/src/client/sound/s_music.cpp similarity index 100% rename from src/client/sound/s_music.c rename to src/client/sound/s_music.cpp diff --git a/src/client/sound/s_sample.c b/src/client/sound/s_sample.cpp similarity index 100% rename from src/client/sound/s_sample.c rename to src/client/sound/s_sample.cpp diff --git a/src/client/ui/node/ui_node_abstractnode.cpp b/src/client/ui/node/ui_node_abstractnode.cpp index 8739225d780..2fd2496c653 100644 --- a/src/client/ui/node/ui_node_abstractnode.cpp +++ b/src/client/ui/node/ui_node_abstractnode.cpp @@ -23,14 +23,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -extern "C" { #include "ui_node_abstractnode.h" #include "../ui_actions.h" #include "../ui_tooltip.h" #include "../ui_behaviour.h" #include "../ui_components.h" #include "../ui_parse.h" -} #ifdef DEBUG /** diff --git a/src/client/ui/node/ui_node_abstractoption.c b/src/client/ui/node/ui_node_abstractoption.cpp similarity index 100% rename from src/client/ui/node/ui_node_abstractoption.c rename to src/client/ui/node/ui_node_abstractoption.cpp diff --git a/src/client/ui/node/ui_node_abstractscrollable.c b/src/client/ui/node/ui_node_abstractscrollable.cpp similarity index 100% rename from src/client/ui/node/ui_node_abstractscrollable.c rename to src/client/ui/node/ui_node_abstractscrollable.cpp diff --git a/src/client/ui/node/ui_node_abstractscrollbar.c b/src/client/ui/node/ui_node_abstractscrollbar.cpp similarity index 100% rename from src/client/ui/node/ui_node_abstractscrollbar.c rename to src/client/ui/node/ui_node_abstractscrollbar.cpp diff --git a/src/client/ui/node/ui_node_abstractvalue.c b/src/client/ui/node/ui_node_abstractvalue.cpp similarity index 100% rename from src/client/ui/node/ui_node_abstractvalue.c rename to src/client/ui/node/ui_node_abstractvalue.cpp diff --git a/src/client/ui/node/ui_node_bar.c b/src/client/ui/node/ui_node_bar.cpp similarity index 100% rename from src/client/ui/node/ui_node_bar.c rename to src/client/ui/node/ui_node_bar.cpp diff --git a/src/client/ui/node/ui_node_base.c b/src/client/ui/node/ui_node_base.cpp similarity index 100% rename from src/client/ui/node/ui_node_base.c rename to src/client/ui/node/ui_node_base.cpp diff --git a/src/client/ui/node/ui_node_baseinventory.c b/src/client/ui/node/ui_node_baseinventory.cpp similarity index 100% rename from src/client/ui/node/ui_node_baseinventory.c rename to src/client/ui/node/ui_node_baseinventory.cpp diff --git a/src/client/ui/node/ui_node_battlescape.c b/src/client/ui/node/ui_node_battlescape.cpp similarity index 100% rename from src/client/ui/node/ui_node_battlescape.c rename to src/client/ui/node/ui_node_battlescape.cpp diff --git a/src/client/ui/node/ui_node_button.c b/src/client/ui/node/ui_node_button.cpp similarity index 100% rename from src/client/ui/node/ui_node_button.c rename to src/client/ui/node/ui_node_button.cpp diff --git a/src/client/ui/node/ui_node_checkbox.c b/src/client/ui/node/ui_node_checkbox.cpp similarity index 100% rename from src/client/ui/node/ui_node_checkbox.c rename to src/client/ui/node/ui_node_checkbox.cpp diff --git a/src/client/ui/node/ui_node_container.c b/src/client/ui/node/ui_node_container.cpp similarity index 100% rename from src/client/ui/node/ui_node_container.c rename to src/client/ui/node/ui_node_container.cpp diff --git a/src/client/ui/node/ui_node_controls.c b/src/client/ui/node/ui_node_controls.cpp similarity index 100% rename from src/client/ui/node/ui_node_controls.c rename to src/client/ui/node/ui_node_controls.cpp diff --git a/src/client/ui/node/ui_node_custombutton.c b/src/client/ui/node/ui_node_custombutton.cpp similarity index 100% rename from src/client/ui/node/ui_node_custombutton.c rename to src/client/ui/node/ui_node_custombutton.cpp diff --git a/src/client/ui/node/ui_node_data.c b/src/client/ui/node/ui_node_data.cpp similarity index 100% rename from src/client/ui/node/ui_node_data.c rename to src/client/ui/node/ui_node_data.cpp diff --git a/src/client/ui/node/ui_node_editor.c b/src/client/ui/node/ui_node_editor.cpp similarity index 100% rename from src/client/ui/node/ui_node_editor.c rename to src/client/ui/node/ui_node_editor.cpp diff --git a/src/client/ui/node/ui_node_ekg.c b/src/client/ui/node/ui_node_ekg.cpp similarity index 100% rename from src/client/ui/node/ui_node_ekg.c rename to src/client/ui/node/ui_node_ekg.cpp diff --git a/src/client/ui/node/ui_node_image.c b/src/client/ui/node/ui_node_image.cpp similarity index 100% rename from src/client/ui/node/ui_node_image.c rename to src/client/ui/node/ui_node_image.cpp diff --git a/src/client/ui/node/ui_node_item.c b/src/client/ui/node/ui_node_item.cpp similarity index 100% rename from src/client/ui/node/ui_node_item.c rename to src/client/ui/node/ui_node_item.cpp diff --git a/src/client/ui/node/ui_node_keybinding.c b/src/client/ui/node/ui_node_keybinding.cpp similarity index 100% rename from src/client/ui/node/ui_node_keybinding.c rename to src/client/ui/node/ui_node_keybinding.cpp diff --git a/src/client/ui/node/ui_node_linechart.c b/src/client/ui/node/ui_node_linechart.cpp similarity index 100% rename from src/client/ui/node/ui_node_linechart.c rename to src/client/ui/node/ui_node_linechart.cpp diff --git a/src/client/ui/node/ui_node_map.c b/src/client/ui/node/ui_node_map.cpp similarity index 100% rename from src/client/ui/node/ui_node_map.c rename to src/client/ui/node/ui_node_map.cpp diff --git a/src/client/ui/node/ui_node_material_editor.c b/src/client/ui/node/ui_node_material_editor.cpp similarity index 100% rename from src/client/ui/node/ui_node_material_editor.c rename to src/client/ui/node/ui_node_material_editor.cpp diff --git a/src/client/ui/node/ui_node_messagelist.c b/src/client/ui/node/ui_node_messagelist.cpp similarity index 100% rename from src/client/ui/node/ui_node_messagelist.c rename to src/client/ui/node/ui_node_messagelist.cpp diff --git a/src/client/ui/node/ui_node_model.c b/src/client/ui/node/ui_node_model.cpp similarity index 100% rename from src/client/ui/node/ui_node_model.c rename to src/client/ui/node/ui_node_model.cpp diff --git a/src/client/ui/node/ui_node_option.c b/src/client/ui/node/ui_node_option.cpp similarity index 100% rename from src/client/ui/node/ui_node_option.c rename to src/client/ui/node/ui_node_option.cpp diff --git a/src/client/ui/node/ui_node_optionlist.c b/src/client/ui/node/ui_node_optionlist.cpp similarity index 100% rename from src/client/ui/node/ui_node_optionlist.c rename to src/client/ui/node/ui_node_optionlist.cpp diff --git a/src/client/ui/node/ui_node_optiontree.c b/src/client/ui/node/ui_node_optiontree.cpp similarity index 100% rename from src/client/ui/node/ui_node_optiontree.c rename to src/client/ui/node/ui_node_optiontree.cpp diff --git a/src/client/ui/node/ui_node_panel.c b/src/client/ui/node/ui_node_panel.cpp similarity index 100% rename from src/client/ui/node/ui_node_panel.c rename to src/client/ui/node/ui_node_panel.cpp diff --git a/src/client/ui/node/ui_node_radar.c b/src/client/ui/node/ui_node_radar.cpp similarity index 100% rename from src/client/ui/node/ui_node_radar.c rename to src/client/ui/node/ui_node_radar.cpp diff --git a/src/client/ui/node/ui_node_radiobutton.c b/src/client/ui/node/ui_node_radiobutton.cpp similarity index 100% rename from src/client/ui/node/ui_node_radiobutton.c rename to src/client/ui/node/ui_node_radiobutton.cpp diff --git a/src/client/ui/node/ui_node_rows.c b/src/client/ui/node/ui_node_rows.cpp similarity index 100% rename from src/client/ui/node/ui_node_rows.c rename to src/client/ui/node/ui_node_rows.cpp diff --git a/src/client/ui/node/ui_node_selectbox.c b/src/client/ui/node/ui_node_selectbox.cpp similarity index 100% rename from src/client/ui/node/ui_node_selectbox.c rename to src/client/ui/node/ui_node_selectbox.cpp diff --git a/src/client/ui/node/ui_node_sequence.c b/src/client/ui/node/ui_node_sequence.cpp similarity index 100% rename from src/client/ui/node/ui_node_sequence.c rename to src/client/ui/node/ui_node_sequence.cpp diff --git a/src/client/ui/node/ui_node_special.c b/src/client/ui/node/ui_node_special.cpp similarity index 100% rename from src/client/ui/node/ui_node_special.c rename to src/client/ui/node/ui_node_special.cpp diff --git a/src/client/ui/node/ui_node_spinner.c b/src/client/ui/node/ui_node_spinner.cpp similarity index 100% rename from src/client/ui/node/ui_node_spinner.c rename to src/client/ui/node/ui_node_spinner.cpp diff --git a/src/client/ui/node/ui_node_spinner2.c b/src/client/ui/node/ui_node_spinner2.cpp similarity index 100% rename from src/client/ui/node/ui_node_spinner2.c rename to src/client/ui/node/ui_node_spinner2.cpp diff --git a/src/client/ui/node/ui_node_string.c b/src/client/ui/node/ui_node_string.cpp similarity index 100% rename from src/client/ui/node/ui_node_string.c rename to src/client/ui/node/ui_node_string.cpp diff --git a/src/client/ui/node/ui_node_tab.c b/src/client/ui/node/ui_node_tab.cpp similarity index 100% rename from src/client/ui/node/ui_node_tab.c rename to src/client/ui/node/ui_node_tab.cpp diff --git a/src/client/ui/node/ui_node_tbar.c b/src/client/ui/node/ui_node_tbar.cpp similarity index 100% rename from src/client/ui/node/ui_node_tbar.c rename to src/client/ui/node/ui_node_tbar.cpp diff --git a/src/client/ui/node/ui_node_text.c b/src/client/ui/node/ui_node_text.cpp similarity index 100% rename from src/client/ui/node/ui_node_text.c rename to src/client/ui/node/ui_node_text.cpp diff --git a/src/client/ui/node/ui_node_text2.c b/src/client/ui/node/ui_node_text2.cpp similarity index 100% rename from src/client/ui/node/ui_node_text2.c rename to src/client/ui/node/ui_node_text2.cpp diff --git a/src/client/ui/node/ui_node_textentry.c b/src/client/ui/node/ui_node_textentry.cpp similarity index 100% rename from src/client/ui/node/ui_node_textentry.c rename to src/client/ui/node/ui_node_textentry.cpp diff --git a/src/client/ui/node/ui_node_textlist.c b/src/client/ui/node/ui_node_textlist.cpp similarity index 100% rename from src/client/ui/node/ui_node_textlist.c rename to src/client/ui/node/ui_node_textlist.cpp diff --git a/src/client/ui/node/ui_node_texture.c b/src/client/ui/node/ui_node_texture.cpp similarity index 100% rename from src/client/ui/node/ui_node_texture.c rename to src/client/ui/node/ui_node_texture.cpp diff --git a/src/client/ui/node/ui_node_todo.c b/src/client/ui/node/ui_node_todo.cpp similarity index 100% rename from src/client/ui/node/ui_node_todo.c rename to src/client/ui/node/ui_node_todo.cpp diff --git a/src/client/ui/node/ui_node_video.c b/src/client/ui/node/ui_node_video.cpp similarity index 100% rename from src/client/ui/node/ui_node_video.c rename to src/client/ui/node/ui_node_video.cpp diff --git a/src/client/ui/node/ui_node_vscrollbar.c b/src/client/ui/node/ui_node_vscrollbar.cpp similarity index 100% rename from src/client/ui/node/ui_node_vscrollbar.c rename to src/client/ui/node/ui_node_vscrollbar.cpp diff --git a/src/client/ui/node/ui_node_window.c b/src/client/ui/node/ui_node_window.cpp similarity index 100% rename from src/client/ui/node/ui_node_window.c rename to src/client/ui/node/ui_node_window.cpp diff --git a/src/client/ui/node/ui_node_zone.c b/src/client/ui/node/ui_node_zone.cpp similarity index 100% rename from src/client/ui/node/ui_node_zone.c rename to src/client/ui/node/ui_node_zone.cpp diff --git a/src/client/ui/ui_actions.c b/src/client/ui/ui_actions.cpp similarity index 100% rename from src/client/ui/ui_actions.c rename to src/client/ui/ui_actions.cpp diff --git a/src/client/ui/ui_behaviour.c b/src/client/ui/ui_behaviour.cpp similarity index 100% rename from src/client/ui/ui_behaviour.c rename to src/client/ui/ui_behaviour.cpp diff --git a/src/client/ui/ui_components.c b/src/client/ui/ui_components.cpp similarity index 100% rename from src/client/ui/ui_components.c rename to src/client/ui/ui_components.cpp diff --git a/src/client/ui/ui_data.c b/src/client/ui/ui_data.cpp similarity index 100% rename from src/client/ui/ui_data.c rename to src/client/ui/ui_data.cpp diff --git a/src/client/ui/ui_dragndrop.c b/src/client/ui/ui_dragndrop.cpp similarity index 100% rename from src/client/ui/ui_dragndrop.c rename to src/client/ui/ui_dragndrop.cpp diff --git a/src/client/ui/ui_draw.c b/src/client/ui/ui_draw.cpp similarity index 100% rename from src/client/ui/ui_draw.c rename to src/client/ui/ui_draw.cpp diff --git a/src/client/ui/ui_expression.c b/src/client/ui/ui_expression.cpp similarity index 100% rename from src/client/ui/ui_expression.c rename to src/client/ui/ui_expression.cpp diff --git a/src/client/ui/ui_font.c b/src/client/ui/ui_font.cpp similarity index 100% rename from src/client/ui/ui_font.c rename to src/client/ui/ui_font.cpp diff --git a/src/client/ui/ui_input.c b/src/client/ui/ui_input.cpp similarity index 100% rename from src/client/ui/ui_input.c rename to src/client/ui/ui_input.cpp diff --git a/src/client/ui/ui_main.c b/src/client/ui/ui_main.cpp similarity index 100% rename from src/client/ui/ui_main.c rename to src/client/ui/ui_main.cpp diff --git a/src/client/ui/ui_node.cpp b/src/client/ui/ui_node.cpp index 4b0e8b603bc..3a84d552d9c 100644 --- a/src/client/ui/ui_node.cpp +++ b/src/client/ui/ui_node.cpp @@ -23,8 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -extern "C" { - #include "ui_main.h" #include "ui_behaviour.h" #include "ui_nodes.h" @@ -34,7 +32,6 @@ extern "C" { #include "ui_components.h" #include "ui_internal.h" - /** * @todo Use typeid when it is possible */ @@ -840,5 +837,3 @@ void UI_Validate (uiNode_t *node) if (node->invalidated) node->behaviour->doLayout(node); } - -} diff --git a/src/client/ui/ui_nodes.c b/src/client/ui/ui_nodes.cpp similarity index 100% rename from src/client/ui/ui_nodes.c rename to src/client/ui/ui_nodes.cpp diff --git a/src/client/ui/ui_parse.c b/src/client/ui/ui_parse.cpp similarity index 100% rename from src/client/ui/ui_parse.c rename to src/client/ui/ui_parse.cpp diff --git a/src/client/ui/ui_popup.c b/src/client/ui/ui_popup.cpp similarity index 100% rename from src/client/ui/ui_popup.c rename to src/client/ui/ui_popup.cpp diff --git a/src/client/ui/ui_render.c b/src/client/ui/ui_render.cpp similarity index 100% rename from src/client/ui/ui_render.c rename to src/client/ui/ui_render.cpp diff --git a/src/client/ui/ui_sound.c b/src/client/ui/ui_sound.cpp similarity index 100% rename from src/client/ui/ui_sound.c rename to src/client/ui/ui_sound.cpp diff --git a/src/client/ui/ui_sprite.c b/src/client/ui/ui_sprite.cpp similarity index 100% rename from src/client/ui/ui_sprite.c rename to src/client/ui/ui_sprite.cpp diff --git a/src/client/ui/ui_timer.c b/src/client/ui/ui_timer.cpp similarity index 100% rename from src/client/ui/ui_timer.c rename to src/client/ui/ui_timer.cpp diff --git a/src/client/ui/ui_tooltip.c b/src/client/ui/ui_tooltip.cpp similarity index 100% rename from src/client/ui/ui_tooltip.c rename to src/client/ui/ui_tooltip.cpp diff --git a/src/client/ui/ui_windows.c b/src/client/ui/ui_windows.cpp similarity index 100% rename from src/client/ui/ui_windows.c rename to src/client/ui/ui_windows.cpp diff --git a/src/common/binaryexpressionparser.c b/src/common/binaryexpressionparser.cpp similarity index 100% rename from src/common/binaryexpressionparser.c rename to src/common/binaryexpressionparser.cpp diff --git a/src/common/bsp.c b/src/common/bsp.cpp similarity index 100% rename from src/common/bsp.c rename to src/common/bsp.cpp diff --git a/src/common/bspslicer.c b/src/common/bspslicer.cpp similarity index 100% rename from src/common/bspslicer.c rename to src/common/bspslicer.cpp diff --git a/src/common/cmd.c b/src/common/cmd.cpp similarity index 100% rename from src/common/cmd.c rename to src/common/cmd.cpp diff --git a/src/common/cmodel.c b/src/common/cmodel.cpp similarity index 100% rename from src/common/cmodel.c rename to src/common/cmodel.cpp diff --git a/src/common/common.c b/src/common/common.cpp similarity index 100% rename from src/common/common.c rename to src/common/common.cpp diff --git a/src/common/cvar.c b/src/common/cvar.cpp similarity index 100% rename from src/common/cvar.c rename to src/common/cvar.cpp diff --git a/src/common/dbuffer.c b/src/common/dbuffer.cpp similarity index 100% rename from src/common/dbuffer.c rename to src/common/dbuffer.cpp diff --git a/src/common/files.c b/src/common/files.cpp similarity index 100% rename from src/common/files.c rename to src/common/files.cpp diff --git a/src/common/grid.c b/src/common/grid.cpp similarity index 100% rename from src/common/grid.c rename to src/common/grid.cpp diff --git a/src/common/http.c b/src/common/http.cpp similarity index 100% rename from src/common/http.c rename to src/common/http.cpp diff --git a/src/common/ioapi.c b/src/common/ioapi.cpp similarity index 100% rename from src/common/ioapi.c rename to src/common/ioapi.cpp diff --git a/src/common/list.c b/src/common/list.cpp similarity index 100% rename from src/common/list.c rename to src/common/list.cpp diff --git a/src/common/md4.c b/src/common/md4.cpp similarity index 100% rename from src/common/md4.c rename to src/common/md4.cpp diff --git a/src/common/md5.c b/src/common/md5.cpp similarity index 100% rename from src/common/md5.c rename to src/common/md5.cpp diff --git a/src/common/mem.c b/src/common/mem.cpp similarity index 100% rename from src/common/mem.c rename to src/common/mem.cpp diff --git a/src/common/msg.c b/src/common/msg.cpp similarity index 100% rename from src/common/msg.c rename to src/common/msg.cpp diff --git a/src/common/net.c b/src/common/net.cpp similarity index 100% rename from src/common/net.c rename to src/common/net.cpp diff --git a/src/common/netpack.c b/src/common/netpack.cpp similarity index 100% rename from src/common/netpack.c rename to src/common/netpack.cpp diff --git a/src/common/pqueue.c b/src/common/pqueue.cpp similarity index 100% rename from src/common/pqueue.c rename to src/common/pqueue.cpp diff --git a/src/common/routing.c b/src/common/routing.cpp similarity index 100% rename from src/common/routing.c rename to src/common/routing.cpp diff --git a/src/common/scripts.c b/src/common/scripts.cpp similarity index 100% rename from src/common/scripts.c rename to src/common/scripts.cpp diff --git a/src/common/tracing.c b/src/common/tracing.cpp similarity index 100% rename from src/common/tracing.c rename to src/common/tracing.cpp diff --git a/src/common/unzip.c b/src/common/unzip.cpp similarity index 100% rename from src/common/unzip.c rename to src/common/unzip.cpp diff --git a/src/common/xml.c b/src/common/xml.cpp similarity index 100% rename from src/common/xml.c rename to src/common/xml.cpp diff --git a/src/game/chr_shared.c b/src/game/chr_shared.cpp similarity index 100% rename from src/game/chr_shared.c rename to src/game/chr_shared.cpp diff --git a/src/game/g_actor.c b/src/game/g_actor.cpp similarity index 100% rename from src/game/g_actor.c rename to src/game/g_actor.cpp diff --git a/src/game/g_ai.c b/src/game/g_ai.cpp similarity index 100% rename from src/game/g_ai.c rename to src/game/g_ai.cpp diff --git a/src/game/g_ai_lua.c b/src/game/g_ai_lua.cpp similarity index 100% rename from src/game/g_ai_lua.c rename to src/game/g_ai_lua.cpp diff --git a/src/game/g_client.c b/src/game/g_client.cpp similarity index 100% rename from src/game/g_client.c rename to src/game/g_client.cpp diff --git a/src/game/g_cmds.c b/src/game/g_cmds.cpp similarity index 100% rename from src/game/g_cmds.c rename to src/game/g_cmds.cpp diff --git a/src/game/g_combat.c b/src/game/g_combat.cpp similarity index 100% rename from src/game/g_combat.c rename to src/game/g_combat.cpp diff --git a/src/game/g_edicts.c b/src/game/g_edicts.cpp similarity index 100% rename from src/game/g_edicts.c rename to src/game/g_edicts.cpp diff --git a/src/game/g_events.c b/src/game/g_events.cpp similarity index 100% rename from src/game/g_events.c rename to src/game/g_events.cpp diff --git a/src/game/g_func.c b/src/game/g_func.cpp similarity index 100% rename from src/game/g_func.c rename to src/game/g_func.cpp diff --git a/src/game/g_inventory.c b/src/game/g_inventory.cpp similarity index 100% rename from src/game/g_inventory.c rename to src/game/g_inventory.cpp diff --git a/src/game/g_local.h b/src/game/g_local.h index 95cdc79922d..2452543f673 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -233,6 +233,7 @@ extern cvar_t *sv_maxentities; extern cvar_t *password; extern cvar_t *sv_needpass; extern cvar_t *sv_dedicated; +extern cvar_t *developer; extern cvar_t *logstats; extern FILE *logstatsfile; diff --git a/src/game/g_main.c b/src/game/g_main.cpp similarity index 99% rename from src/game/g_main.c rename to src/game/g_main.cpp index 12218a56884..55749942899 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.cpp @@ -34,7 +34,14 @@ level_locals_t level; game_import_t gi; game_export_t globals; -cvar_t *password; +#ifndef HARD_LINKED_GAME +cvar_t *sv_maxclients; +cvar_t *sv_dedicated; +cvar_t *developer; +#endif + +cvar_t *logstats; +FILE *logstatsfile; cvar_t *sv_needpass; cvar_t *sv_maxplayersperteam; @@ -43,25 +50,17 @@ cvar_t *sv_maxsoldiersperplayer; cvar_t *sv_enablemorale; cvar_t *sv_roundtimelimit; cvar_t *sv_maxentities; -cvar_t *sv_dedicated; -cvar_t *developer; - -cvar_t *logstats; -FILE *logstatsfile; - cvar_t *sv_filterban; - -static cvar_t *sv_cheats; - cvar_t *sv_maxteams; - cvar_t *sv_ai; cvar_t *sv_teamplay; -cvar_t *sv_maxclients; cvar_t *sv_hurtaliens; cvar_t *sv_shot_origin; +static cvar_t *sv_cheats; static cvar_t *sv_send_edicts; +cvar_t *password; + cvar_t *ai_alien; cvar_t *ai_civilian; cvar_t *ai_equipment; diff --git a/src/game/g_match.c b/src/game/g_match.cpp similarity index 100% rename from src/game/g_match.c rename to src/game/g_match.cpp diff --git a/src/game/g_mission.c b/src/game/g_mission.cpp similarity index 100% rename from src/game/g_mission.c rename to src/game/g_mission.cpp diff --git a/src/game/g_morale.c b/src/game/g_morale.cpp similarity index 100% rename from src/game/g_morale.c rename to src/game/g_morale.cpp diff --git a/src/game/g_move.c b/src/game/g_move.cpp similarity index 100% rename from src/game/g_move.c rename to src/game/g_move.cpp diff --git a/src/game/g_phys.c b/src/game/g_phys.cpp similarity index 100% rename from src/game/g_phys.c rename to src/game/g_phys.cpp diff --git a/src/game/g_reaction.c b/src/game/g_reaction.cpp similarity index 100% rename from src/game/g_reaction.c rename to src/game/g_reaction.cpp diff --git a/src/game/g_round.c b/src/game/g_round.cpp similarity index 100% rename from src/game/g_round.c rename to src/game/g_round.cpp diff --git a/src/game/g_spawn.c b/src/game/g_spawn.cpp similarity index 100% rename from src/game/g_spawn.c rename to src/game/g_spawn.cpp diff --git a/src/game/g_stats.c b/src/game/g_stats.cpp similarity index 100% rename from src/game/g_stats.c rename to src/game/g_stats.cpp diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.cpp similarity index 100% rename from src/game/g_svcmds.c rename to src/game/g_svcmds.cpp diff --git a/src/game/g_trigger.c b/src/game/g_trigger.cpp similarity index 100% rename from src/game/g_trigger.c rename to src/game/g_trigger.cpp diff --git a/src/game/g_utils.c b/src/game/g_utils.cpp similarity index 100% rename from src/game/g_utils.c rename to src/game/g_utils.cpp diff --git a/src/game/g_vis.c b/src/game/g_vis.cpp similarity index 100% rename from src/game/g_vis.c rename to src/game/g_vis.cpp diff --git a/src/game/game.h b/src/game/game.h index a93ae2bec66..ae392aa9331 100644 --- a/src/game/game.h +++ b/src/game/game.h @@ -282,6 +282,6 @@ typedef struct { int maxplayersperteam; } game_export_t; -game_export_t *GetGameAPI(game_import_t * import); +extern "C" game_export_t *GetGameAPI(game_import_t * import); #endif /* GAME_GAME_H */ diff --git a/src/game/inv_shared.c b/src/game/inv_shared.cpp similarity index 100% rename from src/game/inv_shared.c rename to src/game/inv_shared.cpp diff --git a/src/game/inventory.c b/src/game/inventory.cpp similarity index 100% rename from src/game/inventory.c rename to src/game/inventory.cpp diff --git a/src/game/lua/lapi.c b/src/game/lua/lapi.cpp similarity index 100% rename from src/game/lua/lapi.c rename to src/game/lua/lapi.cpp diff --git a/src/game/lua/lauxlib.c b/src/game/lua/lauxlib.cpp similarity index 100% rename from src/game/lua/lauxlib.c rename to src/game/lua/lauxlib.cpp diff --git a/src/game/lua/lbaselib.c b/src/game/lua/lbaselib.cpp similarity index 100% rename from src/game/lua/lbaselib.c rename to src/game/lua/lbaselib.cpp diff --git a/src/game/lua/lcode.c b/src/game/lua/lcode.cpp similarity index 100% rename from src/game/lua/lcode.c rename to src/game/lua/lcode.cpp diff --git a/src/game/lua/ldblib.c b/src/game/lua/ldblib.cpp similarity index 100% rename from src/game/lua/ldblib.c rename to src/game/lua/ldblib.cpp diff --git a/src/game/lua/ldebug.c b/src/game/lua/ldebug.cpp similarity index 100% rename from src/game/lua/ldebug.c rename to src/game/lua/ldebug.cpp diff --git a/src/game/lua/ldo.c b/src/game/lua/ldo.cpp similarity index 100% rename from src/game/lua/ldo.c rename to src/game/lua/ldo.cpp diff --git a/src/game/lua/ldump.c b/src/game/lua/ldump.cpp similarity index 100% rename from src/game/lua/ldump.c rename to src/game/lua/ldump.cpp diff --git a/src/game/lua/lfunc.c b/src/game/lua/lfunc.cpp similarity index 100% rename from src/game/lua/lfunc.c rename to src/game/lua/lfunc.cpp diff --git a/src/game/lua/lgc.c b/src/game/lua/lgc.cpp similarity index 100% rename from src/game/lua/lgc.c rename to src/game/lua/lgc.cpp diff --git a/src/game/lua/linit.c b/src/game/lua/linit.cpp similarity index 100% rename from src/game/lua/linit.c rename to src/game/lua/linit.cpp diff --git a/src/game/lua/liolib.c b/src/game/lua/liolib.cpp similarity index 100% rename from src/game/lua/liolib.c rename to src/game/lua/liolib.cpp diff --git a/src/game/lua/llex.c b/src/game/lua/llex.cpp similarity index 100% rename from src/game/lua/llex.c rename to src/game/lua/llex.cpp diff --git a/src/game/lua/lmathlib.c b/src/game/lua/lmathlib.cpp similarity index 100% rename from src/game/lua/lmathlib.c rename to src/game/lua/lmathlib.cpp diff --git a/src/game/lua/lmem.c b/src/game/lua/lmem.cpp similarity index 100% rename from src/game/lua/lmem.c rename to src/game/lua/lmem.cpp diff --git a/src/game/lua/loadlib.c b/src/game/lua/loadlib.cpp similarity index 100% rename from src/game/lua/loadlib.c rename to src/game/lua/loadlib.cpp diff --git a/src/game/lua/lobject.c b/src/game/lua/lobject.cpp similarity index 100% rename from src/game/lua/lobject.c rename to src/game/lua/lobject.cpp diff --git a/src/game/lua/lopcodes.c b/src/game/lua/lopcodes.cpp similarity index 100% rename from src/game/lua/lopcodes.c rename to src/game/lua/lopcodes.cpp diff --git a/src/game/lua/loslib.c b/src/game/lua/loslib.cpp similarity index 100% rename from src/game/lua/loslib.c rename to src/game/lua/loslib.cpp diff --git a/src/game/lua/lparser.c b/src/game/lua/lparser.cpp similarity index 100% rename from src/game/lua/lparser.c rename to src/game/lua/lparser.cpp diff --git a/src/game/lua/lstate.c b/src/game/lua/lstate.cpp similarity index 100% rename from src/game/lua/lstate.c rename to src/game/lua/lstate.cpp diff --git a/src/game/lua/lstring.c b/src/game/lua/lstring.cpp similarity index 100% rename from src/game/lua/lstring.c rename to src/game/lua/lstring.cpp diff --git a/src/game/lua/lstrlib.c b/src/game/lua/lstrlib.cpp similarity index 100% rename from src/game/lua/lstrlib.c rename to src/game/lua/lstrlib.cpp diff --git a/src/game/lua/ltable.c b/src/game/lua/ltable.cpp similarity index 100% rename from src/game/lua/ltable.c rename to src/game/lua/ltable.cpp diff --git a/src/game/lua/ltablib.c b/src/game/lua/ltablib.cpp similarity index 100% rename from src/game/lua/ltablib.c rename to src/game/lua/ltablib.cpp diff --git a/src/game/lua/ltm.c b/src/game/lua/ltm.cpp similarity index 100% rename from src/game/lua/ltm.c rename to src/game/lua/ltm.cpp diff --git a/src/game/lua/lundump.c b/src/game/lua/lundump.cpp similarity index 98% rename from src/game/lua/lundump.c rename to src/game/lua/lundump.cpp index 8010a45795b..996b4eb3ebb 100644 --- a/src/game/lua/lundump.c +++ b/src/game/lua/lundump.cpp @@ -111,10 +111,10 @@ static void LoadConstants(LoadState* S, Proto* f) switch (t) { case LUA_TNIL: - setnilvalue(o); + setnilvalue(o); break; case LUA_TBOOLEAN: - setbvalue(o,LoadChar(S)!=0); + setbvalue(o,LoadChar(S)!=0); break; case LUA_TNUMBER: setnvalue(o,LoadNumber(S)); diff --git a/src/game/lua/lvm.c b/src/game/lua/lvm.cpp similarity index 100% rename from src/game/lua/lvm.c rename to src/game/lua/lvm.cpp diff --git a/src/game/lua/lzio.c b/src/game/lua/lzio.cpp similarity index 100% rename from src/game/lua/lzio.c rename to src/game/lua/lzio.cpp diff --git a/src/game/lua/print.c b/src/game/lua/print.cpp similarity index 98% rename from src/game/lua/print.c rename to src/game/lua/print.cpp index e240cfc3c60..508bbf384d8 100644 --- a/src/game/lua/print.c +++ b/src/game/lua/print.cpp @@ -40,7 +40,7 @@ static void PrintString(const TString* ts) case '\t': printf("\\t"); break; case '\v': printf("\\v"); break; default: if (isprint((unsigned char)c)) - putchar(c); + putchar(c); else printf("\\%03u",(unsigned char)c); } @@ -168,7 +168,7 @@ static void PrintHeader(const Proto* f) else s="(string)"; printf("\n%s <%s:%d,%d> (%d instruction%s, %d bytes at %p)\n", - (f->linedefined==0)?"main":"function",s, + (f->linedefined==0)?"main":"function",s, f->linedefined,f->lastlinedefined, S(f->sizecode),f->sizecode*Sizeof(Instruction),VOID(f)); printf("%d%s param%s, %d slot%s, %d upvalue%s, ", diff --git a/src/game/q_shared.c b/src/game/q_shared.cpp similarity index 100% rename from src/game/q_shared.c rename to src/game/q_shared.cpp diff --git a/src/ports/android/android_console.c b/src/ports/android/android_console.cpp similarity index 100% rename from src/ports/android/android_console.c rename to src/ports/android/android_console.cpp diff --git a/src/ports/android/android_debugger.c b/src/ports/android/android_debugger.cpp similarity index 100% rename from src/ports/android/android_debugger.c rename to src/ports/android/android_debugger.cpp diff --git a/src/ports/android/android_main.c b/src/ports/android/android_main.cpp similarity index 100% rename from src/ports/android/android_main.c rename to src/ports/android/android_main.cpp diff --git a/src/ports/android/android_system.c b/src/ports/android/android_system.cpp similarity index 100% rename from src/ports/android/android_system.c rename to src/ports/android/android_system.cpp diff --git a/src/ports/linux/linux_main.c b/src/ports/linux/linux_main.cpp similarity index 100% rename from src/ports/linux/linux_main.c rename to src/ports/linux/linux_main.cpp diff --git a/src/ports/solaris/solaris_main.c b/src/ports/solaris/solaris_main.cpp similarity index 100% rename from src/ports/solaris/solaris_main.c rename to src/ports/solaris/solaris_main.cpp diff --git a/src/ports/unix/unix_console.c b/src/ports/unix/unix_console.cpp similarity index 100% rename from src/ports/unix/unix_console.c rename to src/ports/unix/unix_console.cpp diff --git a/src/ports/unix/unix_files.c b/src/ports/unix/unix_files.cpp similarity index 100% rename from src/ports/unix/unix_files.c rename to src/ports/unix/unix_files.cpp diff --git a/src/ports/unix/unix_main.c b/src/ports/unix/unix_main.cpp similarity index 100% rename from src/ports/unix/unix_main.c rename to src/ports/unix/unix_main.cpp diff --git a/src/ports/unix/unix_shared.c b/src/ports/unix/unix_shared.cpp similarity index 100% rename from src/ports/unix/unix_shared.c rename to src/ports/unix/unix_shared.cpp diff --git a/src/ports/windows/win_backtrace.c b/src/ports/windows/win_backtrace.cpp similarity index 100% rename from src/ports/windows/win_backtrace.c rename to src/ports/windows/win_backtrace.cpp diff --git a/src/ports/windows/win_console.c b/src/ports/windows/win_console.cpp similarity index 100% rename from src/ports/windows/win_console.c rename to src/ports/windows/win_console.cpp diff --git a/src/ports/windows/win_main.c b/src/ports/windows/win_main.cpp similarity index 100% rename from src/ports/windows/win_main.c rename to src/ports/windows/win_main.cpp diff --git a/src/ports/windows/win_shared.c b/src/ports/windows/win_shared.cpp similarity index 100% rename from src/ports/windows/win_shared.c rename to src/ports/windows/win_shared.cpp diff --git a/src/server/sv_ccmds.c b/src/server/sv_ccmds.cpp similarity index 100% rename from src/server/sv_ccmds.c rename to src/server/sv_ccmds.cpp diff --git a/src/server/sv_clientstub.c b/src/server/sv_clientstub.cpp similarity index 100% rename from src/server/sv_clientstub.c rename to src/server/sv_clientstub.cpp diff --git a/src/server/sv_game.c b/src/server/sv_game.cpp similarity index 100% rename from src/server/sv_game.c rename to src/server/sv_game.cpp diff --git a/src/server/sv_init.c b/src/server/sv_init.cpp similarity index 100% rename from src/server/sv_init.c rename to src/server/sv_init.cpp diff --git a/src/server/sv_log.c b/src/server/sv_log.cpp similarity index 100% rename from src/server/sv_log.c rename to src/server/sv_log.cpp diff --git a/src/server/sv_main.c b/src/server/sv_main.cpp similarity index 100% rename from src/server/sv_main.c rename to src/server/sv_main.cpp diff --git a/src/server/sv_mapcycle.c b/src/server/sv_mapcycle.cpp similarity index 100% rename from src/server/sv_mapcycle.c rename to src/server/sv_mapcycle.cpp diff --git a/src/server/sv_null.c b/src/server/sv_null.cpp similarity index 100% rename from src/server/sv_null.c rename to src/server/sv_null.cpp diff --git a/src/server/sv_rma.c b/src/server/sv_rma.cpp similarity index 100% rename from src/server/sv_rma.c rename to src/server/sv_rma.cpp diff --git a/src/server/sv_send.c b/src/server/sv_send.cpp similarity index 100% rename from src/server/sv_send.c rename to src/server/sv_send.cpp diff --git a/src/server/sv_user.c b/src/server/sv_user.cpp similarity index 100% rename from src/server/sv_user.c rename to src/server/sv_user.cpp diff --git a/src/server/sv_world.c b/src/server/sv_world.cpp similarity index 100% rename from src/server/sv_world.c rename to src/server/sv_world.cpp diff --git a/src/shared/bfd.c b/src/shared/bfd.cpp similarity index 100% rename from src/shared/bfd.c rename to src/shared/bfd.cpp diff --git a/src/shared/byte.c b/src/shared/byte.cpp similarity index 100% rename from src/shared/byte.c rename to src/shared/byte.cpp diff --git a/src/shared/entitiesdef.c b/src/shared/entitiesdef.cpp similarity index 100% rename from src/shared/entitiesdef.c rename to src/shared/entitiesdef.cpp diff --git a/src/shared/entitiesdef.h b/src/shared/entitiesdef.h index d143475c31c..05aeb94d683 100644 --- a/src/shared/entitiesdef.h +++ b/src/shared/entitiesdef.h @@ -28,10 +28,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef ENITIESDEF_H # define ENITIESDEF_H -#ifdef __cplusplus -extern "C" { -#endif - # define ED_MAX_DEFS 64 # define ED_ERROR -1 @@ -97,8 +93,4 @@ void ED_Free(void); extern int numEntityDefs; extern entityDef_t entityDefs[ED_MAX_DEFS + 1]; -#ifdef __cplusplus -} -#endif - #endif diff --git a/src/shared/images.c b/src/shared/images.cpp similarity index 100% rename from src/shared/images.c rename to src/shared/images.cpp diff --git a/src/shared/infostring.c b/src/shared/infostring.cpp similarity index 100% rename from src/shared/infostring.c rename to src/shared/infostring.cpp diff --git a/src/shared/mathlib.c b/src/shared/mathlib.cpp similarity index 100% rename from src/shared/mathlib.c rename to src/shared/mathlib.cpp diff --git a/src/shared/mathlib_extra.c b/src/shared/mathlib_extra.cpp similarity index 100% rename from src/shared/mathlib_extra.c rename to src/shared/mathlib_extra.cpp diff --git a/src/shared/mutex.c b/src/shared/mutex.cpp similarity index 100% rename from src/shared/mutex.c rename to src/shared/mutex.cpp diff --git a/src/shared/parse.c b/src/shared/parse.cpp similarity index 100% rename from src/shared/parse.c rename to src/shared/parse.cpp diff --git a/src/shared/parse.h b/src/shared/parse.h index fd47aa50497..31ac2d049b7 100644 --- a/src/shared/parse.h +++ b/src/shared/parse.h @@ -28,10 +28,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef PARSE_H #define PARSE_H -#ifdef __cplusplus -extern "C" { -#endif - #include "ufotypes.h" const char *Com_Parse(const char **data_p); @@ -40,8 +36,4 @@ void Com_UnParseLastToken(void); qboolean Com_ParsedTokenIsQuoted(void); void Com_EnableFunctionScriptToken(qboolean enable); -#ifdef __cplusplus -} -#endif - #endif diff --git a/src/shared/shared.c b/src/shared/shared.cpp similarity index 100% rename from src/shared/shared.c rename to src/shared/shared.cpp diff --git a/src/shared/shared.h b/src/shared/shared.h index b994dade6c4..21b308114ac 100644 --- a/src/shared/shared.h +++ b/src/shared/shared.h @@ -64,8 +64,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # ifndef snprintf # define snprintf _snprintf # endif -# define EXPORT __cdecl -# define IMPORT __cdecl +# define EXPORT +# define IMPORT #else # define EXPORT # define IMPORT diff --git a/src/shared/stringhunk.c b/src/shared/stringhunk.cpp similarity index 100% rename from src/shared/stringhunk.c rename to src/shared/stringhunk.cpp diff --git a/src/shared/utf8.c b/src/shared/utf8.cpp similarity index 100% rename from src/shared/utf8.c rename to src/shared/utf8.cpp diff --git a/src/tests/test_all.c b/src/tests/test_all.cpp similarity index 100% rename from src/tests/test_all.c rename to src/tests/test_all.cpp diff --git a/src/tests/test_campaign.c b/src/tests/test_campaign.cpp similarity index 100% rename from src/tests/test_campaign.c rename to src/tests/test_campaign.cpp diff --git a/src/tests/test_dbuffer.c b/src/tests/test_dbuffer.cpp similarity index 100% rename from src/tests/test_dbuffer.c rename to src/tests/test_dbuffer.cpp diff --git a/src/tests/test_events.c b/src/tests/test_events.cpp similarity index 100% rename from src/tests/test_events.c rename to src/tests/test_events.cpp diff --git a/src/tests/test_game.c b/src/tests/test_game.cpp similarity index 100% rename from src/tests/test_game.c rename to src/tests/test_game.cpp diff --git a/src/tests/test_generic.c b/src/tests/test_generic.cpp similarity index 100% rename from src/tests/test_generic.c rename to src/tests/test_generic.cpp diff --git a/src/tests/test_inventory.c b/src/tests/test_inventory.cpp similarity index 100% rename from src/tests/test_inventory.c rename to src/tests/test_inventory.cpp diff --git a/src/tests/test_mapdef.c b/src/tests/test_mapdef.cpp similarity index 100% rename from src/tests/test_mapdef.c rename to src/tests/test_mapdef.cpp diff --git a/src/tests/test_mathlibextra.c b/src/tests/test_mathlibextra.cpp similarity index 100% rename from src/tests/test_mathlibextra.c rename to src/tests/test_mathlibextra.cpp diff --git a/src/tests/test_parser.c b/src/tests/test_parser.cpp similarity index 100% rename from src/tests/test_parser.c rename to src/tests/test_parser.cpp diff --git a/src/tests/test_renderer.c b/src/tests/test_renderer.cpp similarity index 100% rename from src/tests/test_renderer.c rename to src/tests/test_renderer.cpp diff --git a/src/tests/test_rma.c b/src/tests/test_rma.cpp similarity index 98% rename from src/tests/test_rma.c rename to src/tests/test_rma.cpp index 3eb3d9e210b..aa86e77cce8 100644 --- a/src/tests/test_rma.c +++ b/src/tests/test_rma.cpp @@ -24,16 +24,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "test_rma.h" #include "test_shared.h" +#include "../server/server.h" #include "../server/sv_rma.h" #include "../ports/system.h" #define MAX_ALLOWED_TIME_TO_ASSEMBLE 30000 -cvar_t *sv_dumpmapassembly; -cvar_t *sv_threads; -cvar_t *sv_rma; -cvar_t *sv_rmadisplaythemap; - /** * The suite initialization function. * Returns zero on success, non-zero otherwise. diff --git a/src/tests/test_routing.c b/src/tests/test_routing.cpp similarity index 100% rename from src/tests/test_routing.c rename to src/tests/test_routing.cpp diff --git a/src/tests/test_scripts.c b/src/tests/test_scripts.cpp similarity index 100% rename from src/tests/test_scripts.c rename to src/tests/test_scripts.cpp diff --git a/src/tests/test_shared.c b/src/tests/test_shared.cpp similarity index 100% rename from src/tests/test_shared.c rename to src/tests/test_shared.cpp diff --git a/src/tests/test_ui.c b/src/tests/test_ui.cpp similarity index 100% rename from src/tests/test_ui.c rename to src/tests/test_ui.cpp diff --git a/src/tests/test_ui_level2.c b/src/tests/test_ui_level2.cpp similarity index 100% rename from src/tests/test_ui_level2.c rename to src/tests/test_ui_level2.cpp diff --git a/src/tools/addr2line.c b/src/tools/addr2line.cpp similarity index 100% rename from src/tools/addr2line.c rename to src/tools/addr2line.cpp diff --git a/src/tools/gldummy.c b/src/tools/gldummy.cpp similarity index 100% rename from src/tools/gldummy.c rename to src/tools/gldummy.cpp diff --git a/src/tools/memory.c b/src/tools/memory.cpp similarity index 100% rename from src/tools/memory.c rename to src/tools/memory.cpp diff --git a/src/tools/ufo2map/bsp.c b/src/tools/ufo2map/bsp.cpp similarity index 100% rename from src/tools/ufo2map/bsp.c rename to src/tools/ufo2map/bsp.cpp diff --git a/src/tools/ufo2map/bspbrush.c b/src/tools/ufo2map/bspbrush.cpp similarity index 100% rename from src/tools/ufo2map/bspbrush.c rename to src/tools/ufo2map/bspbrush.cpp diff --git a/src/tools/ufo2map/check/check.c b/src/tools/ufo2map/check/check.cpp similarity index 100% rename from src/tools/ufo2map/check/check.c rename to src/tools/ufo2map/check/check.cpp diff --git a/src/tools/ufo2map/check/checkentities.c b/src/tools/ufo2map/check/checkentities.cpp similarity index 100% rename from src/tools/ufo2map/check/checkentities.c rename to src/tools/ufo2map/check/checkentities.cpp diff --git a/src/tools/ufo2map/check/checklib.c b/src/tools/ufo2map/check/checklib.cpp similarity index 100% rename from src/tools/ufo2map/check/checklib.c rename to src/tools/ufo2map/check/checklib.cpp diff --git a/src/tools/ufo2map/common/aselib.c b/src/tools/ufo2map/common/aselib.cpp similarity index 100% rename from src/tools/ufo2map/common/aselib.c rename to src/tools/ufo2map/common/aselib.cpp diff --git a/src/tools/ufo2map/common/bspfile.c b/src/tools/ufo2map/common/bspfile.cpp similarity index 100% rename from src/tools/ufo2map/common/bspfile.c rename to src/tools/ufo2map/common/bspfile.cpp diff --git a/src/tools/ufo2map/common/polylib.c b/src/tools/ufo2map/common/polylib.cpp similarity index 100% rename from src/tools/ufo2map/common/polylib.c rename to src/tools/ufo2map/common/polylib.cpp diff --git a/src/tools/ufo2map/common/scriplib.c b/src/tools/ufo2map/common/scriplib.cpp similarity index 100% rename from src/tools/ufo2map/common/scriplib.c rename to src/tools/ufo2map/common/scriplib.cpp diff --git a/src/tools/ufo2map/common/trace.c b/src/tools/ufo2map/common/trace.cpp similarity index 100% rename from src/tools/ufo2map/common/trace.c rename to src/tools/ufo2map/common/trace.cpp diff --git a/src/tools/ufo2map/csg.c b/src/tools/ufo2map/csg.cpp similarity index 100% rename from src/tools/ufo2map/csg.c rename to src/tools/ufo2map/csg.cpp diff --git a/src/tools/ufo2map/faces.c b/src/tools/ufo2map/faces.cpp similarity index 100% rename from src/tools/ufo2map/faces.c rename to src/tools/ufo2map/faces.cpp diff --git a/src/tools/ufo2map/levels.c b/src/tools/ufo2map/levels.cpp similarity index 100% rename from src/tools/ufo2map/levels.c rename to src/tools/ufo2map/levels.cpp diff --git a/src/tools/ufo2map/lighting.c b/src/tools/ufo2map/lighting.cpp similarity index 100% rename from src/tools/ufo2map/lighting.c rename to src/tools/ufo2map/lighting.cpp diff --git a/src/tools/ufo2map/lightmap.c b/src/tools/ufo2map/lightmap.cpp similarity index 100% rename from src/tools/ufo2map/lightmap.c rename to src/tools/ufo2map/lightmap.cpp diff --git a/src/tools/ufo2map/map.c b/src/tools/ufo2map/map.cpp similarity index 100% rename from src/tools/ufo2map/map.c rename to src/tools/ufo2map/map.cpp diff --git a/src/tools/ufo2map/patches.c b/src/tools/ufo2map/patches.cpp similarity index 100% rename from src/tools/ufo2map/patches.c rename to src/tools/ufo2map/patches.cpp diff --git a/src/tools/ufo2map/portals.c b/src/tools/ufo2map/portals.cpp similarity index 100% rename from src/tools/ufo2map/portals.c rename to src/tools/ufo2map/portals.cpp diff --git a/src/tools/ufo2map/routing.c b/src/tools/ufo2map/routing.cpp similarity index 100% rename from src/tools/ufo2map/routing.c rename to src/tools/ufo2map/routing.cpp diff --git a/src/tools/ufo2map/textures.c b/src/tools/ufo2map/textures.cpp similarity index 100% rename from src/tools/ufo2map/textures.c rename to src/tools/ufo2map/textures.cpp diff --git a/src/tools/ufo2map/threads.c b/src/tools/ufo2map/threads.cpp similarity index 100% rename from src/tools/ufo2map/threads.c rename to src/tools/ufo2map/threads.cpp diff --git a/src/tools/ufo2map/tree.c b/src/tools/ufo2map/tree.cpp similarity index 100% rename from src/tools/ufo2map/tree.c rename to src/tools/ufo2map/tree.cpp diff --git a/src/tools/ufo2map/ufo2map.c b/src/tools/ufo2map/ufo2map.cpp similarity index 100% rename from src/tools/ufo2map/ufo2map.c rename to src/tools/ufo2map/ufo2map.cpp diff --git a/src/tools/ufo2map/writebsp.c b/src/tools/ufo2map/writebsp.cpp similarity index 100% rename from src/tools/ufo2map/writebsp.c rename to src/tools/ufo2map/writebsp.cpp diff --git a/src/tools/ufomodel/ufomodel.c b/src/tools/ufomodel/ufomodel.cpp similarity index 100% rename from src/tools/ufomodel/ufomodel.c rename to src/tools/ufomodel/ufomodel.cpp diff --git a/src/tools/ufoslicer.c b/src/tools/ufoslicer.cpp similarity index 100% rename from src/tools/ufoslicer.c rename to src/tools/ufoslicer.cpp