consolidate common code from c/s into common
Most files should be identical for client and server, and should therefore live
in the common directory. Now comes the problem... there have been changes that
make it difficult to consolidate the files. I've merged the obvious ones
already, but the rest require careful attention to detail and editing. Be
intelligent, don't break anything!
Bug accepted, awaiting further development.
Reassigned to Dash.
Need to start moving client-only things back out of common, the server does not need all the gfx stuff
and takes too long to build.
as of r969:
need to remove from server:
c_console, ct_chat, v_draw, hu_stuff, v_text, wi_stuff
need to move from common to client:
st_*, r_*, f_*
These are all rather delicate operations with many depends and may take time.
also, c_cvars.cpp needs to go from c+s to common
r974 moved c_cvars.cpp to common
What is left as of r1039:
Move c_console, v_draw, v_video, v_palette, st_* and r_* from server&common to client.
These are the most difficult lot because they work closely with other common code.
r1451 significantly changes common code, especially for server. Following list of changes:
Moved r_bsp.cpp and r_segs.cpp from /common to /client
Seperated r_draw.*, r_plane.*, r_sky.* and r_things.cpp from /common to /client and /server. r_draw, r_plane and r_sky need to be removed from /server as they contain minimal code (though tricky to remove). r_things.cpp is a lot more sensitive as there's a lot more code than the other files
Removed v_video.cpp and st_stuff.* from /server, moved st_stuff.h to /common
(In reply to comment #10)
> moved st_stuff.h to /common
That should say "moved st_stuff.h from /client to /common", my bad.
r1634: p_enemy.cpp moved into common
(In reply to comment #9)
> What is left as of r1039:
> Move c_console, v_draw, v_video, v_palette, st_* and r_* from server&common to
had a look at c_console.cpp, that probably should not be removed from the server
r1956 - Moved p_local.h to common (well denis did anyway :P)
p_interaction.cpp could use integration into common, as could some duplicated functions. as far as this bug is concerned, it is close enough. marking fixed.
*** Bug 509 has been marked as a duplicate of this bug. ***