Re: [Wormux-dev] [RFC] Step by step reintroduction of replay

2007-06-16 Par sujet Kurosu
Romain Bignon a écrit > Why don't you call Replay::StoreAction() in Network::SendAction() ? I know When the server is local, I bet those actions wouldn't be seen. > this makes a dependancie to Replay in network.cpp, but each time there is : > Replay::GetInstance()->StoreAction(&a); > N

[Wormux-dev] Constify some members in Action

2007-06-16 Par sujet Kurosu
Hello, I'm not sure if the compiler would really make a copy of the object when those functions are called, but as the Action objects can be const when used these members are used, a small optimization was possible. I also added newer functions (getting the packet size, and writing to an already

Re: [Wormux-dev] [RFC] Step by step reintroduction of replay

2007-06-16 Par sujet Kurosu
Kurosu a écrit : > But let's concentrate for now on what this patch does. There are 3 steps: > - recording actions, which requires some modification to the Action class [...] > - interfacing with it; basically, wherever network packets are sent, we > store them to in the Replay buffer After an IRC

Re: [Wormux-dev] Constify some members in Action

2007-06-16 Par sujet Kurosu
Kurosu a écrit : [...] And once again, patch swallowed by the mailing list. Please find that patch here: http://kurosu.free.fr/action.diff Kurosu ___ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev

Re: [Wormux-dev] Constify some members in Action

2007-06-16 Par sujet oznog
Le Sat, 16 Jun 2007 20:43:40 +0200, Kurosu <[EMAIL PROTECTED]> a écrit : > Kurosu a écrit : > [...] > > And once again, patch swallowed by the mailing list. Please find that > patch here: > http://kurosu.free.fr/action.diff > Well I can see a malloc but not a free, Is that normal ? -- QFDQF __