That would be cool like if u made several mistakes...ctrl z ctrl z and so on, also i can't save saves it says "NO REPLY FROM SERVER" anyone know what that is?
This has got a problem, BIG PROBLEM Only recognise the normal line, NO SQUARES, NO LINES if you make a pixel and next 300 squares and make the redo, it returns to the original pixel is a very very big problem
But it should include decor, because countless times i have made a box of xolor on decor then tried to zoom too fast nand LOST EVERYTHING! Once I lost 2 hours work.
That would be cool like if u made several mistakes...ctrl z ctrl z and so on, also i can't save saves it says "NO REPLY FROM SERVER" anyone know what that is?
There's a heckload of other threads asking that, just go there.
Don't make threads to fail, go to another thread and fail in group
@Emo, I see you got excellent tolerance to failure. Also, the CTRL-Z utility is shown below: (@/Simon/ , please make some sort of spoiler code added to the server via a [spoiler] tag! link
if (sdl_key=='z'&&(sdl_mod & (KMOD_LCTRL|KMOD_RCTRL))) // Undo { int cbx, cby, cbi; for (cbi=0; cbi parts[cbi] = cb_parts[cbi]; for (cby = 0; cby for (cbx = 0; cbx pmap[cby][cbx] = cb_pmap[cby][cbx]; for (cby = 0; cby<(YRES/CELL); cby++)<br /> for (cbx = 0; cbx<(XRES/CELL); cbx++)<br /> { vx[cby][cbx] = cb_vx[cby][cbx]; vy[cby][cbx] = cb_vy[cby][cbx]; pv[cby][cbx] = cb_pv[cby][cbx]; hv[cby][cbx] = cb_hv[cby][cbx]; bmap[cby][cbx] = cb_bmap[cby][cbx]; emap[cby][cbx] = cb_emap[cby][cbx]; } } } Below is the undo-preparer code(makes copies of the world) else //normal click, spawn element { //Copy state before drawing any particles (for undo) int cbx, cby, cbi;
for (cbi=0; cbi cb_parts[cbi] = parts[cbi];
for (cby = 0; cby for (cbx = 0; cbx cb_pmap[cby][cbx] = pmap[cby][cbx];
Or simple. Let go of the draw key every once in a while. :P
The undo function will take you back to the last time you clicked with the mouse key, so it's extremely easy to use it effectively, but just randomly pressing it with a mistake won't work unless you've clicked at some point earlier.